coreboot-kgpe-d16/util/inteltool
Paul Menzel 5f3754e66d inteltool: cpu.c: Use conversion specifier `u` for unsigned integers
Cppcheck [1], a static code analysis tool, warns about the
following.

    $ cppcheck --version
    Cppcheck 1.59
    $ cppcheck --enable=all .
    […]
    Checking cpu.c...
    [cpu.c:951]: (warning) %d in format string (no. 1) requires a signed integer given in the argument list.
    [cpu.c:962]: (warning) %d in format string (no. 1) requires a signed integer given in the argument list.
    […]

And indeed, `core` is an unsigned integer and `man 3 printf` tells
the following about conversion specifiers.

       d, i   The int argument is converted to signed decimal notation. […]

       o, u, x, X
              The unsigned int argument is converted to unsigned octal (o), unsigned decimal (u), or  unsigned  hexadecimal  (x  and  X)
              notation.

So use `u` and Cppcheck does not complain anymore.

[1] http://cppcheck.sourceforge.net/

Change-Id: If8dd8d0efe75fcb4af2502ae5100e3f2062649e4
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: http://review.coreboot.org/3026
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2013-04-05 20:17:03 +02:00
..
Makefile inteltool: Allow to override Makefile variables 2013-04-01 22:40:45 +02:00
amb.c inteltool: Cast to `intptr_t` instead of `uint64_t` 2013-04-04 14:24:25 +02:00
cpu.c inteltool: cpu.c: Use conversion specifier `u` for unsigned integers 2013-04-05 20:17:03 +02:00
gpio.c inteltool: Add Cougar/Panther Point GPIO defaults 2013-04-01 22:39:30 +02:00
inteltool.8 Cosmetics, whitespace, coding style, partially ident-aided (trivial). 2008-05-14 21:20:55 +00:00
inteltool.c inteltool: Add option to show differences in GPIO setup 2013-04-01 22:39:04 +02:00
inteltool.h inteltool: Add option to show differences in GPIO setup 2013-04-01 22:39:04 +02:00
memory.c inteltool: Use `ll` instead of `l` as the length modifier for `uint64_t` 2013-04-03 11:13:29 +02:00
pcie.c inteltool: add support for 946GZ and 946PL 2012-10-19 10:27:53 +02:00
powermgt.c inteltool: Support PM registers on Cougar/Panther Point 2013-04-01 21:00:16 +02:00
rootcmplx.c inteltool: Add Cougar/Panther Point IDs to rootcmplx.c 2013-03-30 18:17:08 +01:00