Mercurial > flash_v2
diff packages/devs/flash/intel/strata/current/src/strata.c @ 162:2395031e7a66
Merge from eCos master repository on 2001-06-15-06:43:03-BST
| author | jlarmour |
|---|---|
| date | Fri, 15 Jun 2001 22:45:04 +0000 |
| parents | ac086aa3217e |
| children | 0d2b193a635f |
line wrap: on
line diff
--- a/packages/devs/flash/intel/strata/current/src/strata.c +++ b/packages/devs/flash/intel/strata/current/src/strata.c @@ -145,7 +145,7 @@ flash_hwr_init(void) x = (~(CYGNUM_FLASH_BASE_MASK)) + 1; // expected device size x += (unsigned int)flash_info.start; if ( x < (unsigned int)flash_info.end ) { // 2nd sanity check - printf("\nFLASH: Oversized device! End addr %p changed to %p\n", + (*flash_info.pf)("\nFLASH: Oversized device! End addr %p changed to %p\n", flash_info.end, (void *)x ); flash_info.end = (void *)x; } @@ -155,7 +155,7 @@ flash_hwr_init(void) return FLASH_ERR_OK; } flash_type_unknown: - printf("Can't identify FLASH, sorry, man %x, dev %x, id [%4s] stat %x\n", + (*flash_info.pf)("Can't identify FLASH, sorry, man %x, dev %x, id [%4s] stat %x\n", qp->manuf_code, qp->device_code, qp->id, stat ); diag_dump_buf(qp, sizeof(data)); return FLASH_ERR_HWR; @@ -166,7 +166,7 @@ int flash_hwr_map_error(int err) { if (err & FLASH_ErrorMask) { - printf("Err = %x\n", err); + (*flash_info.pf)("Err = %x\n", err); if (err & FLASH_ErrorProgram) return FLASH_ERR_PROGRAM; else if (err & FLASH_ErrorErase)
