From d954394b0779b667aad33c2039ee4a86d2a5acdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Sun, 8 Mar 2009 14:54:35 +0000 Subject: [PATCH] avoid leading space when printing commands git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1453 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 4 ++++ jtag/src/bsdl/bsdl_sem.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 92acc956..98d261f7 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,7 @@ +2009-03-08 Arnim Laeuger + + * src/bsdl/bsdl_sem.c: avoid leading space when printing commands + 2009-03-07 Arnim Laeuger * data/ti/tnetv1060/tnetv1060, data/ti/tnetv1061/tnetv1061: diff --git a/jtag/src/bsdl/bsdl_sem.c b/jtag/src/bsdl/bsdl_sem.c index 11198b9f..aeff8e6a 100644 --- a/jtag/src/bsdl/bsdl_sem.c +++ b/jtag/src/bsdl/bsdl_sem.c @@ -61,7 +61,7 @@ static void print_cmd(char **cmd) char *elem; while ((elem = cmd[idx])) { - printf(" %s", elem); + printf("%s%s", idx > 0 ? " ": "", elem); idx++; } printf("\n");