This is an automated email from Gerrit.

Antonio Borneo ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/5195

-- gerrit

commit 8ca4e0c3e154c33fb1d201414980103ea03b9b81
Author: Antonio Borneo <[email protected]>
Date:   Mon May 6 15:19:30 2019 +0200

    drivers/gw16012: remove useless cast on gw16012_port
    
    The variable gw16012_port is of type uint16_t.
    There is no need for a cast to print it.
    
    Change the format modifier to PRIx32
    
    Change-Id: I16fe688b9d235bae46525635d07849a00fba9548
    Signed-off-by: Antonio Borneo <[email protected]>

diff --git a/src/jtag/drivers/gw16012.c b/src/jtag/drivers/gw16012.c
index f91f7ac..7952153 100644
--- a/src/jtag/drivers/gw16012.c
+++ b/src/jtag/drivers/gw16012.c
@@ -460,7 +460,7 @@ static int gw16012_init_device(void)
                LOG_WARNING("No gw16012 port specified, using default '0x378' 
(LPT1)");
        }
 
-       LOG_DEBUG("requesting privileges for parallel port 0x%lx...", (long 
unsigned)(gw16012_port));
+       LOG_DEBUG("requesting privileges for parallel port 0x%" PRIx32 "...", 
gw16012_port);
 #if PARPORT_USE_GIVEIO == 1
        if (gw16012_get_giveio_access() != 0) {
 #else /* PARPORT_USE_GIVEIO */

-- 


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

Reply via email to