[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 25/29] libqos: use ARRAY_SIZE macro
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-devel] [PATCH 25/29] libqos: use ARRAY_SIZE macro |
Date: |
Tue, 18 Jul 2017 03:10:01 -0300 |
Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
No entry in MAINTAINERS for tests/libqos/* does it deserve it's own entry?
tests/libqos/libqos.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/libqos/libqos.c b/tests/libqos/libqos.c
index 6226546c28..0edb7e99ba 100644
--- a/tests/libqos/libqos.c
+++ b/tests/libqos/libqos.c
@@ -258,7 +258,7 @@ void generate_pattern(void *buffer, size_t len, size_t
cycle_len)
p = rand() % 256;
for (i = 0; i < len; i++) {
tx[i] = p++ % 256;
- if (i % cycle_len == 0) {
+ if (QEMU_IS_ALIGNED(i, cycle_len)) {
p = rand() % 256;
}
}
--
2.13.2
- [Qemu-devel] [PATCH 20/29] disas: use ARRAY_SIZE macro, (continued)
- [Qemu-devel] [PATCH 20/29] disas: use ARRAY_SIZE macro, Philippe Mathieu-Daudé, 2017/07/18
- [Qemu-devel] [PATCH 21/29] qga: use ARRAY_SIZE macro, Philippe Mathieu-Daudé, 2017/07/18
- [Qemu-devel] [PATCH 22/29] vmsvga: use ARRAY_SIZE macro, Philippe Mathieu-Daudé, 2017/07/18
- [Qemu-devel] [PATCH 23/29] async: use ARRAY_SIZE macro, Philippe Mathieu-Daudé, 2017/07/18
- [Qemu-devel] [PATCH 24/29] tests/acpi: use ARRAY_SIZE macro, Philippe Mathieu-Daudé, 2017/07/18
- [Qemu-devel] [PATCH 25/29] libqos: use ARRAY_SIZE macro,
Philippe Mathieu-Daudé <=
- [Qemu-devel] [PATCH 26/29] tests/tcg: use ARRAY_SIZE macro, Philippe Mathieu-Daudé, 2017/07/18
- [Qemu-devel] [PATCH 27/29] tests/hbitmap: use ARRAY_SIZE macro, Philippe Mathieu-Daudé, 2017/07/18