• 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
..
drivers Loading commit data...
nbis Loading commit data...
drivers_api.h Loading commit data...
empty_file Loading commit data...
fp_internal.h Loading commit data...
fpi-assembling.c Loading commit data...
fpi-assembling.h Loading commit data...
fpi-async.c Loading commit data...
fpi-async.h Loading commit data...
fpi-core.c Loading commit data...
fpi-core.h Loading commit data...
fpi-data.c Loading commit data...
fpi-data.h Loading commit data...
fpi-dev-img.c Loading commit data...
fpi-dev-img.h Loading commit data...
fpi-dev.c Loading commit data...
fpi-dev.h Loading commit data...
fpi-img-pixman.c Loading commit data...
fpi-img.c Loading commit data...
fpi-img.h Loading commit data...
fpi-log.h Loading commit data...
fpi-poll.c Loading commit data...
fpi-poll.h Loading commit data...
fpi-ssm.c Loading commit data...
fpi-ssm.h Loading commit data...
fpi-sync.c Loading commit data...
fpi-usb.c Loading commit data...
fpi-usb.h Loading commit data...
fprint-list-supported-devices.c Loading commit data...
fprint-list-udev-rules.c Loading commit data...
fprint.h Loading commit data...
meson.build Loading commit data...