diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/debug_menu.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index eae389d049..e75fce6d32 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -2453,21 +2453,16 @@ static bool dbg_boot_data(void) simplelist_set_line_count(0); crc = crc_32(boot_data.payload, boot_data.length, 0xffffffff); #if defined(HAVE_MULTIBOOT) - char rootpath[VOL_MAX_LEN+2] = RB_ROOT_CONTENTS_DIR; int boot_volume = 0; - if(crc == boot_data.crc) - { - boot_volume = boot_data.boot_volume; /* boot volume contained in uint8_t payload */ - get_redirect_dir(rootpath, sizeof(rootpath), boot_volume, "", ""); - rootpath[path_strip_trailing_separators(rootpath,NULL)] = '\0'; - } - simplelist_addline("Boot Volume: <%lu>", boot_volume); - simplelist_addline("Root:"); - simplelist_addline("%s", rootpath); - simplelist_addline(""); + if(crc == boot_data.crc) + { + boot_volume = boot_data.boot_volume; /* boot volume contained in uint8_t payload */ + } + simplelist_addline("Boot Volume: <%lu>", boot_volume); + simplelist_addline(""); #endif simplelist_addline("Bootdata RAW:"); - if (crc != boot_data.crc) + if (crc != boot_data.crc) simplelist_addline("Magic: %.8s", boot_data.magic); simplelist_addline("Length: %lu", boot_data.length); simplelist_addline("CRC: %lx", boot_data.crc); |