| @@ -57,27 +57,27 @@ | | | @@ -57,27 +57,27 @@ |
57 | * DTRACE_DOF_INIT_DEVNAME set the path to the helper node | | 57 | * DTRACE_DOF_INIT_DEVNAME set the path to the helper node |
58 | */ | | 58 | */ |
59 | | | 59 | |
60 | static const char *devnamep = "/dev/dtrace/helper"; | | 60 | static const char *devnamep = "/dev/dtrace/helper"; |
61 | #ifdef illumos | | 61 | #ifdef illumos |
62 | static const char *olddevname = "/devices/pseudo/dtrace@0:helper"; | | 62 | static const char *olddevname = "/devices/pseudo/dtrace@0:helper"; |
63 | #endif | | 63 | #endif |
64 | | | 64 | |
65 | static const char *modname; /* Name of this load object */ | | 65 | static const char *modname; /* Name of this load object */ |
66 | static int gen; /* DOF helper generation */ | | 66 | static int gen; /* DOF helper generation */ |
67 | extern dof_hdr_t __SUNW_dof; /* DOF defined in the .SUNW_dof section */ | | 67 | extern dof_hdr_t __SUNW_dof; /* DOF defined in the .SUNW_dof section */ |
68 | static boolean_t dof_init_debug = B_FALSE; /* From DTRACE_DOF_INIT_DEBUG */ | | 68 | static boolean_t dof_init_debug = B_FALSE; /* From DTRACE_DOF_INIT_DEBUG */ |
69 | | | 69 | |
70 | static void | | 70 | static void __printflike(2,3) |
71 | dprintf(int debug, const char *fmt, ...) | | 71 | dprintf(int debug, const char *fmt, ...) |
72 | { | | 72 | { |
73 | va_list ap; | | 73 | va_list ap; |
74 | | | 74 | |
75 | if (debug && !dof_init_debug) | | 75 | if (debug && !dof_init_debug) |
76 | return; | | 76 | return; |
77 | | | 77 | |
78 | va_start(ap, fmt); | | 78 | va_start(ap, fmt); |
79 | | | 79 | |
80 | if (modname == NULL) | | 80 | if (modname == NULL) |
81 | (void) fprintf(stderr, "dtrace DOF: "); | | 81 | (void) fprintf(stderr, "dtrace DOF: "); |
82 | else | | 82 | else |
83 | (void) fprintf(stderr, "dtrace DOF %s: ", modname); | | 83 | (void) fprintf(stderr, "dtrace DOF %s: ", modname); |