From 67db38e7667f724e6036b6bf00fe2a29edb5fad0 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Wed, 24 Jul 2024 23:37:53 -0400 Subject: [Bugfix] initialize the volume names for the sim init_volume_names() wasn't being called by the sim Change-Id: Ife0d345cf29bd4a0a658ed194ee85ca4852bc92f --- firmware/common/pathfuncs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'firmware/common/pathfuncs.c') diff --git a/firmware/common/pathfuncs.c b/firmware/common/pathfuncs.c index d4f4415526..db1935db8b 100644 --- a/firmware/common/pathfuncs.c +++ b/firmware/common/pathfuncs.c @@ -113,6 +113,7 @@ static const unsigned char storage_dec_indexes[STORAGE_NUM_TYPES+1] = /* builds a list of drive/volume specifiers */ void init_volume_names(void) { + DEBUGF("%s: ", __func__); FOR_EACH_VOLUME(-1, volume) { const char *voldec = ""; @@ -124,8 +125,9 @@ void init_volume_names(void) voldec = storage_dec_names[storage_dec_indexes[type]]; snprintf(buffer, VOL_MAX_LEN + 1, "%c%s%d%c", VOL_START_TOK, voldec, volume, VOL_END_TOK); - DEBUGF("%s: vol: %d %s", __func__, volume, buffer); + DEBUGF("vol<%d> = %s ", volume, buffer); } + DEBUGF("\n"); } /* Returns on which volume this is and sets *nameptr to the portion of the -- cgit v1.2.3