diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/debug_menu.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 3a9218bc84..1b341a96e4 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -128,6 +128,9 @@ | |||
128 | 128 | ||
129 | #if defined(HAVE_BOOTDATA) && !defined(SIMULATOR) | 129 | #if defined(HAVE_BOOTDATA) && !defined(SIMULATOR) |
130 | #include "bootdata.h" | 130 | #include "bootdata.h" |
131 | #include "rbpaths.h" | ||
132 | #include "pathfuncs.h" | ||
133 | #include "rb-loader.h" | ||
131 | #endif | 134 | #endif |
132 | 135 | ||
133 | static const char* threads_getname(int selected_item, void *data, | 136 | static const char* threads_getname(int selected_item, void *data, |
@@ -2530,12 +2533,17 @@ static bool dbg_boot_data(void) | |||
2530 | simplelist_set_line_count(0); | 2533 | simplelist_set_line_count(0); |
2531 | crc = crc_32(boot_data.payload, boot_data.length, 0xffffffff); | 2534 | crc = crc_32(boot_data.payload, boot_data.length, 0xffffffff); |
2532 | #if defined(HAVE_MULTIBOOT) | 2535 | #if defined(HAVE_MULTIBOOT) |
2536 | char rootpath[VOL_MAX_LEN+2] = RB_ROOT_CONTENTS_DIR; | ||
2533 | int boot_volume = 0; | 2537 | int boot_volume = 0; |
2534 | if(crc == boot_data.crc) | 2538 | if(crc == boot_data.crc) |
2535 | { | 2539 | { |
2536 | boot_volume = boot_data.boot_volume; /* boot volume contained in uint8_t payload */ | 2540 | boot_volume = boot_data.boot_volume; /* boot volume contained in uint8_t payload */ |
2541 | get_redirect_dir(rootpath, sizeof(rootpath), boot_volume, "", ""); | ||
2542 | rootpath[path_strip_trailing_separators(rootpath,NULL)] = '\0'; | ||
2537 | } | 2543 | } |
2538 | simplelist_addline("Boot Volume: <%lu>", boot_volume); | 2544 | simplelist_addline("Boot Volume: <%lu>", boot_volume); |
2545 | simplelist_addline("Root:"); | ||
2546 | simplelist_addline("%s", rootpath); | ||
2539 | simplelist_addline(""); | 2547 | simplelist_addline(""); |
2540 | #endif | 2548 | #endif |
2541 | simplelist_addline("Bootdata RAW:"); | 2549 | simplelist_addline("Bootdata RAW:"); |