Changeset 1426


Ignore:
Timestamp:
09/03/11 19:15:00 (9 months ago)
Author:
uwe
Message:

Introduce ERROR_FATAL, abort upon failed chipset enables.

Signed-off-by: Tadas Slotkus <devtadas@…>
Acked-by: Uwe Hermann <uwe@…>

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/chipset_enable.c

    r1425 r1426  
    13261326                else if (ret == ERROR_NONFATAL) 
    13271327                        msg_pinfo("PROBLEMS, continuing anyway\n"); 
     1328                if (ret == ERROR_FATAL) { 
     1329                        msg_perr("FATAL ERROR!\n"); 
     1330                        return ret; 
     1331                } 
    13281332        } 
    13291333 
  • trunk/flash.h

    r1417 r1426  
    225225#define NT 1    /* Not tested */ 
    226226 
    227 /* Something happened that shouldn't happen, but we can go on */ 
     227/* Something happened that shouldn't happen, but we can go on. */ 
    228228#define ERROR_NONFATAL 0x100 
     229 
     230/* Something happened that shouldn't happen, we'll abort. */ 
     231#define ERROR_FATAL -0xee 
    229232 
    230233/* cli_output.c */ 
  • trunk/internal.c

    r1396 r1426  
    269269                msg_perr("WARNING: No chipset found. Flash detection " 
    270270                         "will most likely fail.\n"); 
    271         } 
     271        } else if (ret == ERROR_FATAL) 
     272                return ret; 
    272273 
    273274#if defined(__i386__) || defined(__x86_64__) 
Note: See TracChangeset for help on using the changeset viewer.