• Bastien Nocera's avatar
    elan: Fix format mismatch warnings in debug output · 9da69dfc
    Bastien Nocera authored
    libfprint/drivers/elan.c:351:12: warning: format specifies type 'unsigned short' but the argument has type 'unsigned char' [-Wformat]
                            dbg_buf(elandev->last_read, transfer->actual_length);
                            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    libfprint/drivers/elan.c:46:21: note: expanded from macro 'dbg_buf'
        fp_dbg("%02hx", buf[0]);                                  \
        ~~~~~~~~~~~~~~~~^~~~~~~
    include/glib-2.0/glib/gmessages.h:345:32: note: expanded from macro 'g_debug'
                                   __VA_ARGS__)
                                   ^~~~~~~~~~~
    libfprint/drivers/elan.c:351:12: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
                            dbg_buf(elandev->last_read, transfer->actual_length);
                            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    libfprint/drivers/elan.c:48:21: note: expanded from macro 'dbg_buf'
        fp_dbg("%04hx", buf[0] << 8 | buf[1]);                    \
        ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
    include/glib-2.0/glib/gmessages.h:345:32: note: expanded from macro 'g_debug'
                                   __VA_ARGS__)
                                   ^~~~~~~~~~~
    libfprint/drivers/elan.c:351:12: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
                            dbg_buf(elandev->last_read, transfer->actual_length);
                            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    libfprint/drivers/elan.c:50:35: note: expanded from macro 'dbg_buf'
        fp_dbg("%04hx... (%d bytes)", buf[0] << 8 | buf[1], len)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
    include/glib-2.0/glib/gmessages.h:345:32: note: expanded from macro 'g_debug'
                                   __VA_ARGS__)
                                   ^~~~~~~~~~~
    libfprint/drivers/elan.c:413:10: warning: format specifies type 'unsigned short' but the argument has type 'unsigned char' [-Wformat]
            dbg_buf(cmd->cmd, 2);
            ~~~~~~~~^~~~~~~~~~~~
    libfprint/drivers/elan.c:46:21: note: expanded from macro 'dbg_buf'
        fp_dbg("%02hx", buf[0]);                                  \
        ~~~~~~~~~~~~~~~~^~~~~~~
    include/glib-2.0/glib/gmessages.h:345:32: note: expanded from macro 'g_debug'
                                   __VA_ARGS__)
                                   ^~~~~~~~~~~
    libfprint/drivers/elan.c:413:10: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
            dbg_buf(cmd->cmd, 2);
            ~~~~~~~~^~~~~~~~~~~~
    libfprint/drivers/elan.c:48:21: note: expanded from macro 'dbg_buf'
        fp_dbg("%04hx", buf[0] << 8 | buf[1]);                    \
        ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
    include/glib-2.0/glib/gmessages.h:345:32: note: expanded from macro 'g_debug'
                                   __VA_ARGS__)
                                   ^~~~~~~~~~~
    libfprint/drivers/elan.c:413:10: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
            dbg_buf(cmd->cmd, 2);
            ~~~~~~~~^~~~~~~~~~~~
    libfprint/drivers/elan.c:50:35: note: expanded from macro 'dbg_buf'
        fp_dbg("%04hx... (%d bytes)", buf[0] << 8 | buf[1], len)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
    include/glib-2.0/glib/gmessages.h:345:32: note: expanded from macro 'g_debug'
                                   __VA_ARGS__)
                                   ^~~~~~~~~~~
    9da69dfc
Name
Last commit
Last update
..
aes1610.c Loading commit data...
aes1660.c Loading commit data...
aes1660.h Loading commit data...
aes2501.c Loading commit data...
aes2501.h Loading commit data...
aes2550.c Loading commit data...
aes2550.h Loading commit data...
aes2660.c Loading commit data...
aes2660.h Loading commit data...
aes3500.c Loading commit data...
aes3k.c Loading commit data...
aes3k.h Loading commit data...
aes4000.c Loading commit data...
aeslib.c Loading commit data...
aeslib.h Loading commit data...
aesx660.c Loading commit data...
aesx660.h Loading commit data...
driver_ids.h Loading commit data...
elan.c Loading commit data...
elan.h Loading commit data...
etes603.c Loading commit data...
fdu2000.c Loading commit data...
upek_proto.c Loading commit data...
upek_proto.h Loading commit data...
upeksonly.c Loading commit data...
upeksonly.h Loading commit data...
upektc.c Loading commit data...
upektc.h Loading commit data...
upektc_img.c Loading commit data...
upektc_img.h Loading commit data...
upekts.c Loading commit data...
uru4000.c Loading commit data...
vcom5s.c Loading commit data...
vfs0050.c Loading commit data...
vfs0050.h Loading commit data...
vfs101.c Loading commit data...
vfs301.c Loading commit data...
vfs301_proto.c Loading commit data...
vfs301_proto.h Loading commit data...
vfs301_proto_fragments.h Loading commit data...
vfs5011.c Loading commit data...
vfs5011_proto.h Loading commit data...