NetBSD-Bugs archive

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

port-emips/50942: src/sys/arch/emips/stand/common/prom_iface.c: 2 * possible bad % specifier ?



>Number:         50942
>Category:       port-emips
>Synopsis:       src/sys/arch/emips/stand/common/prom_iface.c: 2 * possible bad % specifier ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-emips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 11 16:50:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160311
>Organization:
>Environment:
>Description:
1.

src/sys/arch/emips/stand/common/prom_iface.c:290]: (warning) %x in format string (no. 2) requires 'unsigned int' but the argument type is 'size_t {aka unsigned long}'.

Source code is

    printf("remapping %x+%x to %x\n", addr, size, base);

but

    size_t size;

Suggest new code

    printf("remapping %x+%lu to %x\n", addr, size, base);

2.

src/sys/arch/emips/stand/common/prom_iface.c:332]: (warning) %x in format string (no. 2) requires 'unsigned int' but the argument type is 'size_t {aka unsigned long}'.

Source code is

      printf("remapping FLASH %x+%x to %x\n", addr, size, base);

Duplicate.
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index