]> git.sur5r.net Git - openocd/blobdiff - src/target/target.c
Michael Bruck: fixed warnings
[openocd] / src / target / target.c
index 06abb37c232011a64ca6bb470def4cca713d9292..baf57565cc9988e06dec1ec84aba9689e36c0e8d 100644 (file)
@@ -362,11 +362,9 @@ int target_process_reset(struct command_context_s *cmd_ctx)
                                                command_print(cmd_ctx, "Timed out waiting for reset");
                                                goto done;
                                        }
-                                       /* this will send alive messages on e.g. GDB remote protocol.
-                                        * GDB warns me that I'm sending a zero length formatting message,
-                                        * which is strange, but in fact what is intended here. */
+                                       /* this will send alive messages on e.g. GDB remote protocol. */
                                        usleep(500*1000); 
-                                       USER_N(""); 
+                                       USER_N("%s", ""); /* avoid warning about zero length formatting message*/ 
                                        goto again;
                                }
                        }