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 Add missing argument to printk...



details:   https://anonhg.NetBSD.org/src/rev/1839abae3568
branches:  trunk
changeset: 760086:1839abae3568
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Sun Dec 26 09:03:56 2010 +0000

description:
Add missing argument to printk(). (from OpenBSD)

diffstat:

 sys/arch/zaurus/stand/zbsdmod/zbsdmod.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d134c380ae6b -r 1839abae3568 sys/arch/zaurus/stand/zbsdmod/zbsdmod.c
--- a/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c   Sun Dec 26 09:02:52 2010 +0000
+++ b/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c   Sun Dec 26 09:03:56 2010 +0000
@@ -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 @@
        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 @@
                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) {



Home | Main Index | Thread Index | Old Index