diff options
author | 2010-12-24 14:22:59 +0000 | |
---|---|---|
committer | 2010-12-24 14:22:59 +0000 | |
commit | cd21fd0abcd23faa21162088bf3021e101f7be56 (patch) | |
tree | 0379cb1f8d024933a3cb6f99c06824a06b562b13 | |
parent | Add missing argument to printk(). Spotted while porting on linux 2.6. (diff) | |
download | wireguard-openbsd-cd21fd0abcd23faa21162088bf3021e101f7be56.tar.xz wireguard-openbsd-cd21fd0abcd23faa21162088bf3021e101f7be56.zip |
Advertise printk() as a printf-like function.
Diff from miod@, thanks.
-rw-r--r-- | sys/arch/zaurus/stand/zbsdmod/compat_linux.h | 5 |
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 */ |