Mon Feb 29 02:19:38 2016 UTC ()
Add __printflike as appropriate.


(riastradh)
diff -r1.5 -r1.6 src/external/cddl/osnet/dist/lib/libdtrace/common/drti.c

cvs diff -r1.5 -r1.6 src/external/cddl/osnet/dist/lib/libdtrace/common/drti.c (expand / switch to unified diff)

--- src/external/cddl/osnet/dist/lib/libdtrace/common/drti.c 2016/02/28 19:10:45 1.5
+++ src/external/cddl/osnet/dist/lib/libdtrace/common/drti.c 2016/02/29 02:19:37 1.6
@@ -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
60static const char *devnamep = "/dev/dtrace/helper"; 60static const char *devnamep = "/dev/dtrace/helper";
61#ifdef illumos 61#ifdef illumos
62static const char *olddevname = "/devices/pseudo/dtrace@0:helper"; 62static const char *olddevname = "/devices/pseudo/dtrace@0:helper";
63#endif 63#endif
64 64
65static const char *modname; /* Name of this load object */ 65static const char *modname; /* Name of this load object */
66static int gen; /* DOF helper generation */ 66static int gen; /* DOF helper generation */
67extern dof_hdr_t __SUNW_dof; /* DOF defined in the .SUNW_dof section */ 67extern dof_hdr_t __SUNW_dof; /* DOF defined in the .SUNW_dof section */
68static boolean_t dof_init_debug = B_FALSE; /* From DTRACE_DOF_INIT_DEBUG */ 68static boolean_t dof_init_debug = B_FALSE; /* From DTRACE_DOF_INIT_DEBUG */
69 69
70static void 70static void __printflike(2,3)
71dprintf(int debug, const char *fmt, ...) 71dprintf(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);