Print this page
12399 kobj printf functions should be checked
@@ -19,10 +19,12 @@
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright 2020 Joyent, Inc.
*/
/*
* Kernel Run-Time Linker/Loader private interfaces.
*/
@@ -182,12 +184,13 @@
extern int boot_compinfo(int, struct compinfo *);
extern void mach_modpath(char *, const char *);
extern void kobj_setup_standalone_vectors(void);
extern void kobj_restore_vectors(void);
-extern void (*_kobj_printf)(void *, const char *fmt, ...);
-extern void (*_vkobj_printf)(void *, const char *fmt, va_list);
+extern void (*_kobj_printf)(void *, const char *fmt, ...) __KPRINTFLIKE(2);
+extern void (*_vkobj_printf)(void *, const char *fmt, va_list)
+ __KVPRINTFLIKE(2);
extern void (*kobj_bcopy)(const void *, void *, size_t);
extern void (*kobj_bzero)(void *, size_t);
extern size_t (*kobj_strlcat)(char *, const char *, size_t);
#define KOBJ_LM_PRIMARY 0x0