Changeset View
Changeset View
Standalone View
Standalone View
cddl/contrib/opensolaris/lib/libzpool/common/kernel.c
Show First 20 Lines • Show All 681 Lines • ▼ Show 20 Lines | __dprintf(const char *file, const char *func, int line, const char *fmt, ...) | ||||
if (dprintf_print_all || | if (dprintf_print_all || | ||||
dprintf_find_string(newfile) || | dprintf_find_string(newfile) || | ||||
dprintf_find_string(func)) { | dprintf_find_string(func)) { | ||||
/* Print out just the function name if requested */ | /* Print out just the function name if requested */ | ||||
flockfile(stdout); | flockfile(stdout); | ||||
if (dprintf_find_string("pid")) | if (dprintf_find_string("pid")) | ||||
(void) printf("%d ", getpid()); | (void) printf("%d ", getpid()); | ||||
if (dprintf_find_string("tid")) | if (dprintf_find_string("tid")) | ||||
(void) printf("%ul ", thr_self()); | (void) printf("%lu ", thr_self()); | ||||
mahrens: looks good; bug does not exist upstream. | |||||
#if 0 | #if 0 | ||||
if (dprintf_find_string("cpu")) | if (dprintf_find_string("cpu")) | ||||
(void) printf("%u ", getcpuid()); | (void) printf("%u ", getcpuid()); | ||||
#endif | #endif | ||||
if (dprintf_find_string("time")) | if (dprintf_find_string("time")) | ||||
(void) printf("%llu ", gethrtime()); | (void) printf("%llu ", gethrtime()); | ||||
if (dprintf_find_string("long")) | if (dprintf_find_string("long")) | ||||
(void) printf("%s, line %d: ", newfile, line); | (void) printf("%s, line %d: ", newfile, line); | ||||
▲ Show 20 Lines • Show All 499 Lines • Show Last 20 Lines |
looks good; bug does not exist upstream.