Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/sys/dev Pull up revision 1.20 via patch (requested by ela...



details:   https://anonhg.NetBSD.org/src/rev/b5f75f31f4fe
branches:  netbsd-3
changeset: 576983:b5f75f31f4fe
user:      tron <tron%NetBSD.org@localhost>
date:      Tue Aug 16 12:34:57 2005 +0000

description:
Pull up revision 1.20 via patch (requested by elad in ticket #668):
Fix printing formats.
  - size_t is %zu
  - dev_t is uint32_t is %u
  - long is %ld

diffstat:

 sys/dev/verified_exec.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (48 lines):

diff -r f7ca20c09405 -r b5f75f31f4fe sys/dev/verified_exec.c
--- a/sys/dev/verified_exec.c   Tue Aug 16 12:34:50 2005 +0000
+++ b/sys/dev/verified_exec.c   Tue Aug 16 12:34:57 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: verified_exec.c,v 1.5.2.14 2005/08/15 12:38:03 tron Exp $      */
+/*     $NetBSD: verified_exec.c,v 1.5.2.15 2005/08/16 12:34:57 tron Exp $      */
 
 /*-
  * Copyright 2005 Elad Efrat <elad%bsd.org.il@localhost>
@@ -31,9 +31,9 @@
 
 #include <sys/cdefs.h>
 #if defined(__NetBSD__)
-__KERNEL_RCSID(0, "$NetBSD: verified_exec.c,v 1.5.2.14 2005/08/15 12:38:03 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: verified_exec.c,v 1.5.2.15 2005/08/16 12:34:57 tron Exp $");
 #else
-__RCSID("$Id: verified_exec.c,v 1.5.2.14 2005/08/15 12:38:03 tron Exp $\n$NetBSD: verified_exec.c,v 1.5.2.14 2005/08/15 12:38:03 tron Exp $");
+__RCSID("$Id: verified_exec.c,v 1.5.2.15 2005/08/16 12:34:57 tron Exp $\n$NetBSD: verified_exec.c,v 1.5.2.15 2005/08/16 12:34:57 tron Exp $");
 #endif
 
 #include <sys/param.h>
@@ -125,7 +125,7 @@
 {
        if (veriexec_verbose >= 2) {
                printf("Veriexec: veriexecopen: Veriexec load device "
-                      "open attempt by uid=%u, pid=%u. (dev=%d)\n",
+                      "open attempt by uid=%u, pid=%u. (dev=%u)\n",
                       p->p_ucred->cr_uid, p->p_pid, dev);
        }
 
@@ -241,7 +241,7 @@
                         * the signature file. Just give collision info
                         * and return.
                         */
-                       printf("veriexec: Duplicate entry. [%s, %ld:%lu] "
+                       printf("veriexec: Duplicate entry. [%s, %ld:%ld] "
                               "old[type=0x%02x, algorithm=%s], "
                               "new[type=0x%02x, algorithm=%s] "
                               "(%s fingerprint)\n",
@@ -281,7 +281,7 @@
                        printf("Veriexec: veriexecioctl: Inconsistent "
                               "fingerprint size for type \"%s\" for file "
                               "\"%s\" (dev=%ld, inode=%ld), size was %u "
-                              "was expecting %d\n", params->fp_type,
+                              "was expecting %zu\n", params->fp_type,
                               params->file, va.va_fsid, va.va_fileid,
                               params->size, e->ops->hash_len);
                        free(e, M_TEMP);



Home | Main Index | Thread Index | Old Index