Changeset 1436 for trunk


Ignore:
Timestamp:
Sep 12, 2011, 12:08:58 AM (3 years ago)
Author:
stefanct
Message:

Print out the flash chip found after the probing loop in verbose mode

This allows easier identification of the flash chip used in verbose logs.
There is no (additional) output if

  • -c is used to specify a flash chip, or
  • multiple chips are detected, or
  • no chips are detected.

Signed-off-by: Stefan Tauner <stefan.tauner@…>
Acked-by: Uwe Hermann <uwe@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli_classic.c

    r1433 r1436  
    484484                ret = 1; 
    485485                goto out_shutdown; 
     486        } else if (!chip_to_probe) { 
     487                /* repeat for convenience when looking at foreign logs */ 
     488                tempstr = flashbuses_to_text(flashes[0].bustype); 
     489                msg_gdbg("Found %s flash chip \"%s\" (%d kB, %s).\n", 
     490                         flashes[0].vendor, flashes[0].name, 
     491                         flashes[0].total_size, tempstr); 
     492                free(tempstr); 
    486493        } 
    487494 
Note: See TracChangeset for help on using the changeset viewer.