From d2662cfd92977df80a52e233f5e2b1b5618de900 Mon Sep 17 00:00:00 2001 From: nonaka Date: Sun, 26 Dec 2010 09:03:56 +0000 Subject: [PATCH] Add missing argument to printk(). (from OpenBSD) --- sys/arch/zaurus/stand/zbsdmod/zbsdmod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c b/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c index 976fee8aef3b..fe612fc0818b 100644 --- a/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c +++ b/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c @@ -1,4 +1,4 @@ -/* $NetBSD: zbsdmod.c,v 1.4 2009/03/02 09:33:02 nonaka Exp $ */ +/* $NetBSD: zbsdmod.c,v 1.5 2010/12/26 09:03:56 nonaka Exp $ */ /* $OpenBSD: zbsdmod.c,v 1.7 2005/05/02 02:45:29 uwe Exp $ */ /* @@ -273,7 +273,7 @@ init_module(void) rc = register_chrdev(ZBOOTDEV_MAJOR, ZBOOTDEV_NAME, &fops); if (rc != 0) { printk("%s: register_chrdev(%d, ...): error %d\n", - ZBOOTMOD_NAME, -rc); + ZBOOTMOD_NAME, ZBOOTDEV_MAJOR, -rc); return 1; } @@ -346,7 +346,7 @@ zbsdmod_close(struct inode *ino, struct file *f) return -EBUSY; if (position > 0) { - printk("%s: loaded %d bytes\n", ZBOOTDEV_NAME, + printk("%s: loaded %ld bytes\n", ZBOOTDEV_NAME, position); if (position < BOOTINFO_MAXSIZE) {