freemyipod r921 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r920‎ | r921 | r922 >
Date:21:38, 6 May 2014
Author:theseven
Status:new
Tags:
Comment:
emCORE: Report storage initialization errors
Modified paths:
  • /emcore/trunk/init.c (modified) (history)

Diff [purge]

Index: emcore/trunk/init.c
@@ -120,7 +120,12 @@
121121 {
122122 struct initbss* ib = (struct initbss*)arg0;
123123 DEBUGF("Initializing storage drivers...");
124 - storage_init();
 124+ int rc = storage_init();
 125+ if (IS_ERR(rc))
 126+ {
 127+ DEBUGF("Storage init error: %08X\n", rc);
 128+ cprintf(CONSOLE_BOOT, "Storage init error: %08X\n", rc);
 129+ }
125130 DEBUGF("Initializing storage subsystem...");
126131 disk_init_subsystem();
127132 DEBUGF("Reading partition tables...");