This is an automated email from Gerrit.

Andreas Färber ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/3716

-- gerrit

commit 4b41241991ed8205738251eab62f1da52962c855
Author: Andreas Färber <[email protected]>
Date:   Sun Aug 21 22:49:17 2016 +0200

    target: Add missing spaces in error messages
    
    Insert a space before parenthesis in logs that we will need to touch
    for 64-bit target addresses.
    
    While at it, do a couple more surrounding whitespace fixes.
    
    Change-Id: I1080c0470aab51cf7bd56e67e934344d0bf4c5c1
    Signed-off-by: Andreas Färber <[email protected]>

diff --git a/src/target/target.c b/src/target/target.c
index e5961f8..fd25718 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -2034,8 +2034,8 @@ int target_write_buffer(struct target *target, uint32_t 
address, uint32_t size,
                return ERROR_OK;
 
        if ((address + size - 1) < address) {
-               /* GDB can request this when e.g. PC is 0xfffffffc*/
-               LOG_ERROR("address + size wrapped(0x%08x, 0x%08x)",
+               /* GDB can request this when e.g. PC is 0xfffffffc */
+               LOG_ERROR("address + size wrapped (0x%08x, 0x%08x)",
                                  (unsigned)address,
                                  (unsigned)size);
                return ERROR_FAIL;
@@ -2095,8 +2095,8 @@ int target_read_buffer(struct target *target, uint32_t 
address, uint32_t size, u
                return ERROR_OK;
 
        if ((address + size - 1) < address) {
-               /* GDB can request this when e.g. PC is 0xfffffffc*/
-               LOG_ERROR("address + size wrapped(0x%08" PRIx32 ", 0x%08" 
PRIx32 ")",
+               /* GDB can request this when e.g. PC is 0xfffffffc */
+               LOG_ERROR("address + size wrapped (0x%08" PRIx32 ", 0x%08" 
PRIx32 ")",
                                  address,
                                  size);
                return ERROR_FAIL;
@@ -4023,7 +4023,7 @@ static int target_mem2array(Jim_Interp *interp, struct 
target *target, int argc,
                sprintf(buf, "mem2array address: 0x%08" PRIx32 " is not aligned 
for %" PRId32 " byte reads",
                                addr,
                                width);
-               Jim_AppendStrings(interp, Jim_GetResult(interp), buf , NULL);
+               Jim_AppendStrings(interp, Jim_GetResult(interp), buf, NULL);
                return JIM_ERR;
        }
 
@@ -4229,7 +4229,7 @@ static int target_array2mem(Jim_Interp *interp, struct 
target *target,
                sprintf(buf, "array2mem address: 0x%08x is not aligned for %d 
byte reads",
                                (unsigned int)addr,
                                (int)width);
-               Jim_AppendStrings(interp, Jim_GetResult(interp), buf , NULL);
+               Jim_AppendStrings(interp, Jim_GetResult(interp), buf, NULL);
                return JIM_ERR;
        }
 

-- 

------------------------------------------------------------------------------
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to