summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2010-12-24 14:23:00 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2010-12-24 14:23:00 +0000
commitd5600a9005b7bece2de117c4d818344c3a2ab433 (patch)
treedf317a7a8fcb56b81e3822e460b8a020f842bf2a /sys/arch
parenta7e69b4d8dcad338eff0b79a82d12c34cab8bdf3 (diff)
Advertise printk() as a printf-like function.
Diff from miod@, thanks.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/zaurus/stand/zbsdmod/compat_linux.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/zaurus/stand/zbsdmod/compat_linux.h b/sys/arch/zaurus/stand/zbsdmod/compat_linux.h
index 5fe7d4f063b..ca6b3c41ee9 100644
--- a/sys/arch/zaurus/stand/zbsdmod/compat_linux.h
+++ b/sys/arch/zaurus/stand/zbsdmod/compat_linux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: compat_linux.h,v 1.6 2009/03/23 15:15:18 deraadt Exp $ */
+/* $OpenBSD: compat_linux.h,v 1.7 2010/12/24 14:22:59 grange Exp $ */
/*
* Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de>
@@ -90,7 +90,8 @@ extern int kernel_read(struct file *, unsigned long, char *, unsigned long);
extern int memcmp(const void *, const void *, size_t);
extern int register_chrdev(unsigned int, const char *, struct file_operations *);
extern int unregister_chrdev(unsigned int, const char *);
-extern void printk(const char *, ...);
+extern void printk(const char *, ...)
+ __attribute__((__format__(printf, 1, 2)));
extern void *memcpy(void *, const void *, size_t);
/* BSD headers */