Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libsa Fix printf formating in ifdef DEBUG sections.
details: https://anonhg.NetBSD.org/src/rev/68a1a553aa2e
branches: trunk
changeset: 767768:68a1a553aa2e
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sat Jul 30 03:43:20 2011 +0000
description:
Fix printf formating in ifdef DEBUG sections.
diffstat:
sys/lib/libsa/alloc.c | 4 ++--
sys/lib/libsa/tftp.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 9004925edcd7 -r 68a1a553aa2e sys/lib/libsa/alloc.c
--- a/sys/lib/libsa/alloc.c Fri Jul 29 23:44:44 2011 +0000
+++ b/sys/lib/libsa/alloc.c Sat Jul 30 03:43:20 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: alloc.c,v 1.25 2011/06/16 13:27:58 joerg Exp $ */
+/* $NetBSD: alloc.c,v 1.26 2011/07/30 03:43:20 jakllsch Exp $ */
/*
* Copyright (c) 1993
@@ -251,7 +251,7 @@
#endif
#ifdef DEBUG
if (size > (size_t)f->size) {
- printf("dealloc %u bytes @%lx, should be <=%u\n",
+ printf("dealloc %zu bytes @%lx, should be <=%u\n",
size, (u_long)ptr, f->size);
}
diff -r 9004925edcd7 -r 68a1a553aa2e sys/lib/libsa/tftp.c
--- a/sys/lib/libsa/tftp.c Fri Jul 29 23:44:44 2011 +0000
+++ b/sys/lib/libsa/tftp.c Sat Jul 30 03:43:20 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tftp.c,v 1.32 2011/06/16 13:27:58 joerg Exp $ */
+/* $NetBSD: tftp.c,v 1.33 2011/07/30 03:43:20 jakllsch Exp $ */
/*
* Copyright (c) 1996
@@ -410,7 +410,7 @@
filesize += tftpfile->validsize;
}
#ifdef DEBUG
- printf("tftp_size_of_file: file is %d bytes\n", filesize);
+ printf("tftp_size_of_file: file is %zu bytes\n", filesize);
#endif
return filesize;
}
Home |
Main Index |
Thread Index |
Old Index