diff options
author | Eric Wetzel <thewetzel@gmail.com> | 2011-01-05 21:54:12 -0500 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-01-09 21:35:23 +0100 |
commit | 0535531d2753f1b86454bb6ffad6ffbdd56c66d0 (patch) | |
tree | 1c93c3002ce7f2c2b6509daa6f4956713baee252 /src/flash/nor/aduc702x.c | |
parent | 61e1e525c174eaf09debebcdc4ef50ce6f46a8c1 (diff) | |
download | openocd+libswd-0535531d2753f1b86454bb6ffad6ffbdd56c66d0.tar.gz openocd+libswd-0535531d2753f1b86454bb6ffad6ffbdd56c66d0.tar.bz2 openocd+libswd-0535531d2753f1b86454bb6ffad6ffbdd56c66d0.tar.xz openocd+libswd-0535531d2753f1b86454bb6ffad6ffbdd56c66d0.zip |
nit: more LOG_* \n fixes
Remove extra \n from LOG_DEBUG, LOG_INFO, and LOG_WARNING messages
Remove LOG_INFO_N
LOG_INFO_N was only used once and had a \n at the end
Change LOG_USER_N calls that end with \n to LOG_USER
Diffstat (limited to 'src/flash/nor/aduc702x.c')
-rw-r--r-- | src/flash/nor/aduc702x.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/flash/nor/aduc702x.c b/src/flash/nor/aduc702x.c index 2005b78f..02270aef 100644 --- a/src/flash/nor/aduc702x.c +++ b/src/flash/nor/aduc702x.c @@ -105,7 +105,7 @@ static int aduc702x_erase(struct flash_bank *bank, int first, int last) /* mass erase */ if (((first | last) == 0) || ((first == 0) && (last >= bank->num_sectors))) { - LOG_DEBUG("performing mass erase.\n"); + LOG_DEBUG("performing mass erase."); target_write_u16(target, ADUC702x_FLASH + ADUC702x_FLASH_FEEDAT, 0x3cff); target_write_u16(target, ADUC702x_FLASH + ADUC702x_FLASH_FEEADR, 0xffc3); target_write_u8(target, ADUC702x_FLASH + ADUC702x_FLASH_FEECON, 0x06); @@ -117,7 +117,7 @@ static int aduc702x_erase(struct flash_bank *bank, int first, int last) return ERROR_FLASH_OPERATION_FAILED; } - LOG_DEBUG("mass erase successful.\n"); + LOG_DEBUG("mass erase successful."); return ERROR_OK; } else { unsigned long adr; @@ -137,7 +137,7 @@ static int aduc702x_erase(struct flash_bank *bank, int first, int last) return ERROR_FLASH_SECTOR_NOT_ERASED; } - LOG_DEBUG("erased sector at address 0x%08lX\n", adr); + LOG_DEBUG("erased sector at address 0x%08lX", adr); } } @@ -336,7 +336,7 @@ static int aduc702x_write_single(struct flash_bank *bank, uint8_t *buffer, uint3 } } - LOG_DEBUG("wrote %d bytes at address 0x%08lX\n", (int)count, (unsigned long)(offset + x)); + LOG_DEBUG("wrote %d bytes at address 0x%08lX", (int)count, (unsigned long)(offset + x)); aduc702x_set_write_enable(target, 0); |