qemu-e2k/block
Blue Swirl 95ee3914bf blkdebug: fix enum comparison
The signedness of enum types depend on the compiler implementation.
Therefore the check for negative values may or may not be meaningful.

Fix by explicitly casting to a signed integer.

Since the values are also checked earlier against event_names
table, this is an internal error. Change the 'if' to 'assert'.

This also avoids a warning with GCC flag -Wtype-limits.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-09-18 05:53:15 +00:00
..
blkdebug.c blkdebug: fix enum comparison 2010-09-18 05:53:15 +00:00
bochs.c bochs: use qemu block API 2010-05-17 10:20:05 +02:00
cloop.c
cow.c cow: Use bdrv_(p)write_sync for metadata writes 2010-06-22 14:38:02 +02:00
curl.c Fix %lld or %llx printf format use 2010-05-22 08:02:12 +00:00
dmg.c dmg: use qemu block API 2010-05-17 10:20:05 +02:00
nbd.c nbd: Introduce NBD named exports. 2010-08-30 18:29:22 +02:00
parallels.c parallels: use qemu block API 2010-05-17 10:20:05 +02:00
qcow2-cluster.c qcow2: Remove unnecessary flush after L2 write 2010-09-08 12:39:24 +02:00
qcow2-refcount.c qcow2/vdi: Change check to distinguish error cases 2010-07-06 17:05:49 +02:00
qcow2-snapshot.c qcow2: Use bdrv_(p)write_sync for metadata writes 2010-06-22 14:38:02 +02:00
qcow2.c qcow2/vdi: Change check to distinguish error cases 2010-07-06 17:05:49 +02:00
qcow2.h qcow2/vdi: Change check to distinguish error cases 2010-07-06 17:05:49 +02:00
qcow.c qcow: Use bdrv_(p)write_sync for metadata writes 2010-06-22 14:38:02 +02:00
raw-posix-aio.h
raw-posix.c raw-posix: improve detection of scsi-generic devices 2010-09-08 12:39:19 +02:00
raw-win32.c block: Fix bdrv_has_zero_init 2010-08-03 15:57:22 +02:00
raw.c Revert "Make default invocation of block drivers safer (v3)" 2010-09-08 17:09:15 -05:00
sheepdog.c sheepdog: remove unnecessary includes 2010-08-30 18:29:22 +02:00
vdi.c qcow2/vdi: Change check to distinguish error cases 2010-07-06 17:05:49 +02:00
vmdk.c vmdk: Use bdrv_(p)write_sync for metadata writes 2010-06-22 14:38:02 +02:00
vpc.c vpc: Use bdrv_(p)write_sync for metadata writes 2010-06-22 14:38:02 +02:00
vvfat.c vvfat: fat_chksum(): fix access above array bounds 2010-08-30 18:29:22 +02:00