NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/50941: src/regress/sys/kern/allocfree/allocfree.c:244: possible bad % specifier ?
>Number: 50941
>Category: misc
>Synopsis: src/regress/sys/kern/allocfree/allocfree.c:244: possible bad % specifier ?
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 11 16:45:00 +0000 2016
>Originator: David Binderman
>Release: cvs dated 20160311
>Organization:
>Environment:
>Description:
src/regress/sys/kern/allocfree/allocfree.c:244]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'.
Source code is
printf("%d\t%d", sz, i);
but
static size_t sz = 128;
Suggest new code
printf("%lu\t%d", sz, i);
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index