Changeset 112 for trunk/flashrom.c


Ignore:
Timestamp:
May 23, 2007, 8:24:58 PM (7 years ago)
Author:
stepan
Message:

Original v2 revision: 2690

Unify mmap error messages in flashrom (trivial)

Signed-off-by: Stefan Reinauer <stepan@…>
Acked-by: Stefan Reinauer <stepan@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/flashrom.c

    r111 r112  
    117117#ifdef TS5300 
    118118                // FIXME: Wrong place for this decision 
     119                // FIXME: This should be autodetected. It is trivial. 
    119120                flash_baseaddr = 0x9400000; 
    120121#else 
     
    123124 
    124125                /* If getpagesize() > size ->  
    125                  * `Error MMAP /dev/mem: Invalid argument'  
     126                 * "Can't mmap memory using /dev/mem: Invalid argument" 
    126127                 * This should never happen as we don't support any flash chips 
    127                  * smaller than 4k or 8k yet. 
     128                 * smaller than 4k or 8k (yet). 
    128129                 */ 
    129130 
     
    137138                            fd_mem, (off_t) flash_baseaddr); 
    138139                if (bios == MAP_FAILED) { 
    139                         perror("Error: Can't mmap " MEM_DEV "."); 
     140                        perror("Can't mmap memory using " MEM_DEV); 
    140141                        exit(1); 
    141142                } 
Note: See TracChangeset for help on using the changeset viewer.