OSDN Git Service

scsi-disk: Use (unsigned long) typecasts when using "%lu" format string
authorThomas Huth <thuth@redhat.com>
Mon, 13 Jun 2016 08:10:18 +0000 (10:10 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Jun 2016 16:39:04 +0000 (18:39 +0200)
commit142c21455bb2416b37f71b22cb251a4effc8619c
tree6d6e80a2a4e614a5f1d560c23e2d64a28d143694
parent494e95e910c0073705dc5dbcdb17c9b8709d59ec
scsi-disk: Use (unsigned long) typecasts when using "%lu" format string

Some source code analyzers like cppcheck spill out a warning if
the sign of the argument does not match the format string.

Ticket: https://bugs.launchpad.net/qemu/+bug/1589564
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1465805418-15906-1-git-send-email-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-disk.c