Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/raidframe Fix a couple of compiler warnings on the A...



details:   https://anonhg.NetBSD.org/src/rev/cd4b4d7e1cdc
branches:  trunk
changeset: 471831:cd4b4d7e1cdc
user:      oster <oster%NetBSD.org@localhost>
date:      Mon Apr 12 19:39:59 1999 +0000

description:
Fix a couple of compiler warnings on the Alpha.  Pointed out by Tim Rightnour.

diffstat:

 sys/dev/raidframe/rf_netbsdkintf.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r 80719fa71fc4 -r cd4b4d7e1cdc sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c        Mon Apr 12 19:31:27 1999 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c        Mon Apr 12 19:39:59 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_netbsdkintf.c,v 1.17 1999/04/07 14:17:10 oster Exp $        */
+/*     $NetBSD: rf_netbsdkintf.c,v 1.18 1999/04/12 19:39:59 oster Exp $        */
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -1863,14 +1863,14 @@
                if (lp->d_secperunit != rs->sc_size)
                        printf("WARNING: %s: "
                            "total sector size in disklabel (%d) != "
-                           "the size of raid (%d)\n", rs->sc_xname,
-                           lp->d_secperunit, rs->sc_size);
+                           "the size of raid (%ld)\n", rs->sc_xname,
+                           lp->d_secperunit, (long) rs->sc_size);
                for (i = 0; i < lp->d_npartitions; i++) {
                        pp = &lp->d_partitions[i];
                        if (pp->p_offset + pp->p_size > rs->sc_size)
                                printf("WARNING: %s: end of partition `%c' "
-                                   "exceeds the size of raid (%d)\n",
-                                   rs->sc_xname, 'a' + i, rs->sc_size);
+                                   "exceeds the size of raid (%ld)\n",
+                                   rs->sc_xname, 'a' + i, (long) rs->sc_size);
                }
        }
 



Home | Main Index | Thread Index | Old Index