Rockbox

   |   
  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bugs
  • Category Battery/Charging
  • Assigned To No-one
  • Operating System All players
  • Severity Medium
  • Priority Very Low
  • Reported Version Release 3.14
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by federico pelupessy - 2018-04-01

FS#13154 - rc error code discarded in storage_init

I think commit 1654efc31339972d0e6bd41a499fcffc0a45822e introduces the following error:
storage_init in firmware/storage.c does not return an rc error code in case !CONFIG_STORAGE_MULTI
because its discarded here:

#else /* ndef CONFIG_STORAGE_MULTI */
+ STORAGE_FUNCTION(init)();
+#endif /* CONFIG_STORAGE_MULTI */

+ storage_thread_init();

   return 0;
Willliam W commented on 2018-12-10 16:15

https://github.com/Rockbox/rockbox/blob/master/firmware/storage.c#L332

Indeed but what is the consequence?

pretty sure storage_read_sectors would catch it eventually

federico pelupessy commented on 2019-02-08 21:09

in normal operation, maybe not so much..but I ran into it when debugging ATA errors with
a harddisk replacement…so in such case the resulting misleading error codes are quite a pain!!

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing