Skip to content

Commit 04e5959

Browse files
authored
Fix clang-format pre-commit error from #1437 (#1454)
1 parent 4feb6ac commit 04e5959

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

c_emulator/riscv_sim.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -279,21 +279,21 @@ void write_dtb_to_rom(const std::vector<uint8_t> &dtb) {
279279
// Overflow check for addr + size - 1
280280
uint64_t end = addr + size - 1;
281281
if (end < addr) {
282-
fprintf(stderr,
283-
"DTB address/size overflow: addr=0x%0" PRIx64 ", size=0x%0" PRIx64
284-
"\n",
285-
addr, size);
282+
fprintf(stderr, "DTB address/size overflow: addr=0x%0" PRIx64 ", size=0x%0" PRIx64 "\n", addr, size);
286283
exit(EXIT_FAILURE);
287284
}
288285

289286
// Validate DTB range against configured PMA memory regions.
290287
if (!g_model.zdtb_within_configured_pma_memory(addr, size)) {
291288
fprintf(
292-
stderr,
293-
"DTB does not fit in any configured PMA memory region: "
294-
"addr=0x%0" PRIx64 ", size=0x%0" PRIx64 " (end=0x%0" PRIx64 ")\n"
295-
"Hint: adjust memory.dtb_address or memory.regions in the config.\n",
296-
addr, size, end);
289+
stderr,
290+
"DTB does not fit in any configured PMA memory region: "
291+
"addr=0x%0" PRIx64 ", size=0x%0" PRIx64 " (end=0x%0" PRIx64 ")\n"
292+
"Hint: adjust memory.dtb_address or memory.regions in the config.\n",
293+
addr,
294+
size,
295+
end
296+
);
297297
exit(EXIT_FAILURE);
298298
}
299299

0 commit comments

Comments
 (0)