• Dmitry Safonov's avatar
    arm/test: fix printing formats in tests · a007f53b
    Dmitry Safonov authored
    Fixes:
    
    cow01.c: In function 'parent_check':
    ../lib/zdtmtst.h:120:11: error: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'uint64_t {aka long long unsigned int}' [-Werror=format=]
      test_msg("FAIL: %s:%d: " format " (errno = %d (%s))\n", \
               ^
    cow01.c:287:5: note: in expansion of macro 'fail'
         fail("%s[%#x]: %p is not COW-ed (pagemap of "
         ^~~~
    In file included from inotify_system.c:14:0:
    inotify_system.c: In function 'read_set':
    ../lib/zdtmtst.h:117:11: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Werror=form
    at=]
      test_msg("ERR: %s:%d: " format " (errno = %d (%s))\n", \
               ^
    inotify_system.c:299:3: note: in expansion of macro 'pr_perror'
       pr_perror("read(%d, buf, %lu) Failed, errno=%d",
       ^~~~~~~~~
    deleted_dev.c:53:36: error: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type '__dev_t {aka long long unsigned
     int}' [-Werror=format=]
       test_msg("mode %x want %x, dev %lx want %lx\n",
                                        ^
    deleted_dev.c:53:45: error: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'dev_t {aka long long unsigned i
    nt}' [-Werror=format=]
       test_msg("mode %x want %x, dev %lx want %lx\n",
                                                 ^
    ../lib/zdtmtst.h:117:11: error: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'off64_t {aka long long int
    ' [-Werror=format=]
      test_msg("ERR: %s:%d: " format " (errno = %d (%s))\n", \
               ^
    
    Nothing really interesting, but printings with right format specifier.
    Signed-off-by: 's avatarDmitry Safonov <0x7f454c46@gmail.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    a007f53b
Name
Last commit
Last update
Documentation Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
lib Loading commit data...
scripts Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...