Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Use %lu format and (u_long) cast when printing si...



details:   https://anonhg.NetBSD.org/src/rev/9acd5cefcbd1
branches:  trunk
changeset: 546085:9acd5cefcbd1
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sun Apr 20 12:54:05 2003 +0000

description:
Use %lu format and (u_long) cast when printing size_t.

diffstat:

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

diffs (30 lines):

diff -r 83a50471d0e6 -r 9acd5cefcbd1 sys/dev/ic/aic7xxx.c
--- a/sys/dev/ic/aic7xxx.c      Sun Apr 20 12:05:42 2003 +0000
+++ b/sys/dev/ic/aic7xxx.c      Sun Apr 20 12:54:05 2003 +0000
@@ -37,7 +37,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGES.
  *
- * $Id: aic7xxx.c,v 1.96 2003/04/19 19:33:29 fvdl Exp $
+ * $Id: aic7xxx.c,v 1.97 2003/04/20 12:54:05 bjh21 Exp $
  *
  * //depot/aic7xxx/aic7xxx/aic7xxx.c#112 $
  *
@@ -4561,12 +4561,12 @@
 
 #ifdef AHC_DEBUG
        if (ahc_debug & AHC_SHOW_MISC) {
-               printf("%s: hardware scb %d bytes; kernel scb %d bytes; "
-                      "ahc_dma %d bytes\n",
+               printf("%s: hardware scb %lu bytes; kernel scb %lu bytes; "
+                      "ahc_dma %lu bytes\n",
                        ahc_name(ahc),
-                       sizeof(struct hardware_scb),
-                       sizeof(struct scb),
-                       sizeof(struct ahc_dma_seg));
+                       (u_long)sizeof(struct hardware_scb),
+                       (u_long)sizeof(struct scb),
+                       (u_long)sizeof(struct ahc_dma_seg));
        }
 #endif /* AHC_DEBUG */
 



Home | Main Index | Thread Index | Old Index