diff options
author | Eric Wetzel <thewetzel@gmail.com> | 2011-01-05 14:24:54 -0500 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-01-05 21:46:12 +0100 |
commit | a665ef716a9a90c30fb15e1f979845b3438a7251 (patch) | |
tree | 9f5b7f916393d21b2644541bc5e755f0233f96b1 /src/flash/nor/aduc702x.c | |
parent | 0cd84000daab056dea61eb9d60cca538a3716acd (diff) |
nit: do not add \n at end of LOG_ERROR
Fixed in many other places, and submitted in response to Øyvind's invitation.
Diffstat (limited to 'src/flash/nor/aduc702x.c')
-rw-r--r-- | src/flash/nor/aduc702x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flash/nor/aduc702x.c b/src/flash/nor/aduc702x.c index 40ee3212..2005b78f 100644 --- a/src/flash/nor/aduc702x.c +++ b/src/flash/nor/aduc702x.c @@ -112,7 +112,7 @@ static int aduc702x_erase(struct flash_bank *bank, int first, int last) if (aduc702x_check_flash_completion(target, 3500) != ERROR_OK) { - LOG_ERROR("mass erase failed\n"); + LOG_ERROR("mass erase failed"); aduc702x_set_write_enable(target, 0); return ERROR_FLASH_OPERATION_FAILED; } @@ -132,7 +132,7 @@ static int aduc702x_erase(struct flash_bank *bank, int first, int last) if (aduc702x_check_flash_completion(target, 50) != ERROR_OK) { - LOG_ERROR("failed to erase sector at address 0x%08lX\n", adr); + LOG_ERROR("failed to erase sector at address 0x%08lX", adr); aduc702x_set_write_enable(target, 0); return ERROR_FLASH_SECTOR_NOT_ERASED; } @@ -330,7 +330,7 @@ static int aduc702x_write_single(struct flash_bank *bank, uint8_t *buffer, uint3 if (aduc702x_check_flash_completion(target, 1) != ERROR_OK) { - LOG_ERROR("single write failed for address 0x%08lX\n", (unsigned long)(offset + x)); + LOG_ERROR("single write failed for address 0x%08lX", (unsigned long)(offset + x)); aduc702x_set_write_enable(target, 0); return ERROR_FLASH_OPERATION_FAILED; } |