Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/zaurus/stand/zbsdmod Advertise printk() as a printf...
details: https://anonhg.NetBSD.org/src/rev/d134c380ae6b
branches: trunk
changeset: 760085:d134c380ae6b
user: nonaka <nonaka%NetBSD.org@localhost>
date: Sun Dec 26 09:02:52 2010 +0000
description:
Advertise printk() as a printf-like function. (from OpenBSD)
diffstat:
sys/arch/zaurus/stand/zbsdmod/compat_linux.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r f4e8e0bb144a -r d134c380ae6b sys/arch/zaurus/stand/zbsdmod/compat_linux.h
--- a/sys/arch/zaurus/stand/zbsdmod/compat_linux.h Sun Dec 26 03:25:07 2010 +0000
+++ b/sys/arch/zaurus/stand/zbsdmod/compat_linux.h Sun Dec 26 09:02:52 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_linux.h,v 1.4 2007/10/17 19:58:41 garbled Exp $ */
+/* $NetBSD: compat_linux.h,v 1.5 2010/12/26 09:02:52 nonaka Exp $ */
/* $OpenBSD: compat_linux.h,v 1.5 2006/01/15 17:58:27 deraadt Exp $ */
/*
@@ -31,6 +31,7 @@
struct file;
struct inode;
+#include <sys/cdefs.h>
#define ELFSIZE 32
#include <sys/exec_elf.h>
#include <sys/types.h>
@@ -67,7 +68,7 @@
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 *, ...) __printflike(1, 2);
extern void *memcpy(void *, const void *, size_t);
/* Linux LKM support */
Home |
Main Index |
Thread Index |
Old Index