Skip to content

Commit 9ea6295

Browse files
committed
Formatting
1 parent 6d61f9c commit 9ea6295

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

contrib/plugins/bap-tracing/frame_buffer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ void frame_buffer_clean(FrameBuffer *buf) {
171171
buf->idx = 0;
172172
}
173173

174-
bool frame_buffer_write_frame_to_file(FrameBuffer *buf, WLOCKED FILE *file, size_t i) {
174+
bool frame_buffer_write_frame_to_file(FrameBuffer *buf, WLOCKED FILE *file,
175+
size_t i) {
175176
if (i > buf->idx) {
176177
return false;
177178
}

contrib/plugins/bap-tracing/trace_meta.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ void write_meta(WLOCKED FILE *file, char **plugin_argv, size_t plugin_argc) {
178178
// I don't know why, but ASAN crashes at this line if the WRITE_BUF macro
179179
// is used. Although it should be the exact same code.
180180
if (fwrite((packed_buffer), 1, (packed_size), file) != packed_size) {
181-
err(1, "fwrite failed");
181+
err(1, "fwrite failed");
182182
}
183183

184184
g_free(packed_buffer);

contrib/plugins/bap-tracing/tracing.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ static void add_pre_reg_state(VCPU *vcpu, unsigned int vcpu_index,
8181
Register *prev_reg = g_ptr_array_index(vcpu->registers, i);
8282
g_assert(!strcmp(prev_reg->name, reg->name) &&
8383
prev_reg->handle == reg->handle);
84-
memcpy_le(prev_reg->content->data, rdata->data, prev_reg->content->len, state.is_big_endian);
84+
memcpy_le(prev_reg->content->data, rdata->data, prev_reg->content->len,
85+
state.is_big_endian);
8586
frame_buffer_append_reg_info(fbuf, reg->name, rdata, s, OperandRead);
8687
// Flush byte array
8788
g_byte_array_set_size(rdata, 0);

0 commit comments

Comments
 (0)