Commit 68f559a9 authored by Adam Wujek's avatar Adam Wujek

sw/petalinux/diot-util: fix descriptions in status command

Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent a9dcef84
......@@ -91,7 +91,7 @@ static void print_slot_status(void)
uint8_t eeprom_buf[1024*10];
struct FRU_DATA *fru = NULL;
printf("Board status\n");
printf("Peripheral Boards Info\n");
printf("-----+---------+----------------------+----------------------+----------------------+----------------------+\n");
printf("Slot | Present | Manufacturer | Product_name | Serial number | Part Number |\n");
printf("-----+---------+----------------------+----------------------+----------------------+----------------------+\n");
......@@ -169,15 +169,15 @@ int cmd_print_status(char *params)
{
diot_error_clear();
printf("System Info\n");
printf("--------------------+--------------\n");
printf("PCB version | %12d\n", read_pcb_ver());
printf("FMC mezzanine | %12s\n", read_mezzanine_presence() ? "present" : "not present");
printf("PSU 0 | %12s\n", read_psu_presence(1) ? "present" : "not present");
printf("PSU 1 | %12s\n", read_psu_presence(2) ? "present" : "not present");
printf("Card in system slot | %12s\n", read_system_slot_presence() ? "true" : "false");
printf("PSU Alert | %12s\n", read_psu_alert() ? "true" : "false");
printf("--------------------+--------------\n");
printf("DI/OT Crate Info\n");
printf("----------------------------+--------------+\n");
printf("System Board hw revision | %12d |\n", read_pcb_ver());
printf("System Board in System Slot | %12s |\n", read_system_slot_presence() ? "yes" : "no");
printf("FMC mezzanine | %12s |\n", read_mezzanine_presence() ? "present" : "not present");
printf("PSU 0 | %12s |\n", read_psu_presence(1) ? "present" : "not present");
printf("PSU 1 | %12s |\n", read_psu_presence(2) ? "present" : "not present");
printf("PSU Alert | %12s |\n", read_psu_alert() ? "yes" : "no");
printf("----------------------------+--------------+\n");
printf("\n");
print_slot_status();
......
Markdown is supported
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