mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
hw/usb: Use the IEC binary prefix definitions
It eases code review, unit is explicit. Patch generated using: $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ and modified manually. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20180625124238.25339-36-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
872a2b7c4d
commit
246e195b52
4 changed files with 11 additions and 7 deletions
|
@ -26,6 +26,7 @@
|
|||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu/units.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qemu-common.h"
|
||||
#include "qemu/timer.h"
|
||||
|
@ -1298,7 +1299,7 @@ static int usbredir_chardev_can_read(void *opaque)
|
|||
}
|
||||
|
||||
/* usbredir_parser_do_read will consume *all* data we give it */
|
||||
return 1024 * 1024;
|
||||
return 1 * MiB;
|
||||
}
|
||||
|
||||
static void usbredir_chardev_read(void *opaque, const uint8_t *buf, int size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue