Skip to content
Snippets Groups Projects
Commit dcab590b authored by Wesley W. Terpstra's avatar Wesley W. Terpstra
Browse files

Pretty print alignment

parent 25e06615
No related merge requests found
......@@ -123,7 +123,7 @@ void find_device(eb_user_data_t data, eb_device_t dev, sdb_t sdb, eb_status_t st
size = des->device.bus_specific & EB_DATAX;
if (verbose) {
fprintf(stdout, " discovered (");
fprintf(stdout, " discovered device (");
fwrite(des->device.sdb_component.product.name, 1, sizeof(des->device.sdb_component.product.name), stdout);
fprintf(stdout, ") at 0x%"EB_ADDR_FMT" with %s-bit %s\n",
(eb_address_t)des->device.sdb_component.addr_first, width_str[size], endian_str[dev_endian >> 4]);
......
......@@ -153,7 +153,7 @@ static void list_devices(eb_user_data_t user, eb_device_t dev, sdb_t sdb, eb_sta
case sdb_bridge:
fprintf(stdout, "\n");
fprintf(stdout, " sdb_child: %016"PRIx64, des->bridge.sdb_child);
fprintf(stdout, " sdb_child: %016"PRIx64, des->bridge.sdb_child);
if (des->bridge.sdb_child < des->bridge.sdb_component.addr_first || des->bridge.sdb_child > des->bridge.sdb_component.addr_last-64) {
fprintf(stdout, " !!! not contained in wbd_{addr_first,addr_last}\n");
} else {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment