Skip to content

Commit de922e9

Browse files
committed
Formatting
1 parent 81a4ebc commit de922e9

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

contrib/plugins/bap-tracing/frame.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ Frame *frame_new_std(uint64_t addr, int vcpu_id) {
2424
}
2525

2626
void frame_add_operand(Frame *frame, OperandInfo *oi) {
27-
OperandValueList *ol;
28-
if (oi->operand_usage->written) {
29-
ol = frame->std_frame->operand_post_list;
30-
} else {
31-
ol = frame->std_frame->operand_pre_list;
32-
}
33-
34-
oi->taint_info = g_new(TaintInfo, 1);
35-
taint_info__init(oi->taint_info);
36-
oi->taint_info->no_taint = 1;
37-
oi->taint_info->has_no_taint = 1;
38-
39-
ol->n_elem += 1;
40-
ol->elem = g_renew(OperandInfo *, ol->elem, ol->n_elem);
41-
ol->elem[ol->n_elem - 1] = oi;
27+
OperandValueList *ol;
28+
if (oi->operand_usage->written) {
29+
ol = frame->std_frame->operand_post_list;
30+
} else {
31+
ol = frame->std_frame->operand_pre_list;
32+
}
33+
34+
oi->taint_info = g_new(TaintInfo, 1);
35+
taint_info__init(oi->taint_info);
36+
oi->taint_info->no_taint = 1;
37+
oi->taint_info->has_no_taint = 1;
38+
39+
ol->n_elem += 1;
40+
ol->elem = g_renew(OperandInfo *, ol->elem, ol->n_elem);
41+
ol->elem[ol->n_elem - 1] = oi;
4242
}

contrib/plugins/bap-tracing/tracing.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ static void add_pre_reg_state(VCPU *vcpu, unsigned int vcpu_index,
4040
qemu_plugin_reg_descriptor *reg =
4141
&g_array_index(current_regs, qemu_plugin_reg_descriptor, i);
4242
qemu_plugin_read_register(reg->handle, rtmp);
43-
OperandInfo *rinfo = init_reg_operand_info(reg->name, rtmp->data,
44-
rtmp->len, OperandRead);
43+
OperandInfo *rinfo =
44+
init_reg_operand_info(reg->name, rtmp->data, rtmp->len, OperandRead);
4545
g_assert(rinfo);
4646
frame_buffer_append_op_info(fbuf, rinfo);
4747
}

contrib/plugins/bap-tracing/tracing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ typedef struct {
2929

3030
typedef struct {
3131
uint8_t bytes[MAX_INSTRUCTION_SIZE]; ///< Instruction bytes.
32-
size_t size; ///< Len of instruction in bytes.
32+
size_t size; ///< Len of instruction in bytes.
3333
uint64_t vaddr;
3434
} Instruction;
3535

0 commit comments

Comments
 (0)