Module Name: src Committed By: jakllsch Date: Sat Jul 30 03:43:21 UTC 2011
Modified Files: src/sys/lib/libsa: alloc.c tftp.c Log Message: Fix printf formating in ifdef DEBUG sections. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/lib/libsa/alloc.c cvs rdiff -u -r1.32 -r1.33 src/sys/lib/libsa/tftp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/lib/libsa/alloc.c diff -u src/sys/lib/libsa/alloc.c:1.25 src/sys/lib/libsa/alloc.c:1.26 --- src/sys/lib/libsa/alloc.c:1.25 Thu Jun 16 13:27:58 2011 +++ src/sys/lib/libsa/alloc.c Sat Jul 30 03:43:20 2011 @@ -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); } Index: src/sys/lib/libsa/tftp.c diff -u src/sys/lib/libsa/tftp.c:1.32 src/sys/lib/libsa/tftp.c:1.33 --- src/sys/lib/libsa/tftp.c:1.32 Thu Jun 16 13:27:58 2011 +++ src/sys/lib/libsa/tftp.c Sat Jul 30 03:43:20 2011 @@ -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; }