Skip to content

Commit 036ef5e

Browse files
committed
Rename buffer size constant
1 parent 531c8eb commit 036ef5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/plugins/bap-tracing/tracing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_id_t id,
8989
const qemu_info_t *info, int argc,
9090
char **argv) {
9191
const char *target_path = "/tmp/test.trace";
92-
state.frame_buffer = frame_buffer_init(FRAME_BUFFER_SIZE);
92+
state.frame_buffer = frame_buffer_init(FRAME_BUFFER_SIZE_DEFAULT);
9393
state.vcpus = g_array_new(false, true, sizeof(VCPU));
9494
state.file = fopen(target_path, "r");
9595
if (!(state.frame_buffer || state.vcpus || state.file)) {

contrib/plugins/bap-tracing/tracing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
QEMU_PLUGIN_EXPORT int qemu_plugin_version = QEMU_PLUGIN_VERSION;
1010

11-
#define FRAME_BUFFER_SIZE 1024
11+
#define FRAME_BUFFER_SIZE_DEFAULT 1024
1212

1313
typedef struct {
1414
Frame **fbuf;

0 commit comments

Comments
 (0)