In io-char.h file, TTYDEV structure has a variable “verbose” as defined below:
int verbose; /* Driver verbosity */
Based on the value of this variable, logging is done with slogf as information, error, debug etc… A sample:
if (ttydev.verbose > 4)
slogf (_SLOG_SETCODE (_SLOGC_CHAR, 0), _SLOG_DEBUG1, “%s: received intr”, FUNCTION);
I’m unable to understand what is the significance and on what operation the value of this variable is set ?
Any input is highly appreciated.
Thanks in advance.