I adjusted the Wiki field description to reflect the current code:
If this field is non-zero a message is printed whenever this
record is processed, and when any other record in the same
lock-set is processed by a database link from this record.
I do like the idea of using TPRO > 1 to trigger debug messages from
record processing, and this could also be used by device support. It
should be up to the specific record/device support to document its usage
though.
- Andrew
On 01/31/2014 09:46 AM, Michael Davidsaver wrote:
> From what I can see TPRO is only ever tested zero/non-zero.
>
> $ grep -w tpro src/db*/*
> src/db/dbAccess.c: unsigned char
> tpro=precord->tpro;
>
> src/db/dbAccess.c: if (tpro)
> {
>
> src/db/dbAccess.c: if (precord->tpro)
>
>
> On 01/31/2014 09:27 AM, Dudley, David wrote:
>> I’m looking through the Documentation on "Fields common to all record
>> types", and I see that TPRO is defined as:
>>
>>
>>
>> which seems to imply that the only valid contents are 0 or 1.
>>
>> I see that TPRO is defined as a UCHAR, in the section earlier, so I am
>> wondering…..
>>
>> I need to print varied amounts of information on a record as it’s
>> being processed, during a debugging session, so can I plan on using
>> values assigned in TPRO -other- than just 0 and 1 (2,3….) to vary the
>> amount of information printed by the device driver.
>>
>> Unless this is a problem, can the definition of that field be
>> adjusted to state that numbers greater than 0 print information on the
>> record each time it is processed?
>>
>>
>> Later-
>>
>> David Dudley
>> [email protected] <mailto:[email protected]>
>>
>>
>>
>
--
Advertising may be described as the science of arresting the human
intelligence long enough to get money from it. -- Stephen Leacock
- References:
- TPRO Field Definition Dudley, David
- Re: TPRO Field Definition Michael Davidsaver
- Navigate by Date:
- Prev:
Re: stdout/stderr buffering on Windows Andrew Johnson
- Next:
Re: importing jar files from CSS Python script Hovanes Egiyan
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: TPRO Field Definition Michael Davidsaver
- Next:
Question on How to add a new breakpoint table Goff, Steven J
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|