summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVicente Bergas <vicencb@gmail.com>2013-02-24 19:15:14 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-25 09:18:03 +0100
commit8c82b1b2021591a8c3537958c7fa60816c584d8a (patch)
tree1b5e33f686728053c025144033c342f1fc03a05f
parent62acc70dc1c00a1ea86af34e8d5020ac39e96e9f (diff)
downloadbarebox-8c82b1b2021591a8c3537958c7fa60816c584d8a.tar.gz
OMAP4 USB BOOT: remove double line endings
From previous patch that replaced printf with puts: puts adds it's own line ending, so do not append it manually Signed-off-by: Vicente Bergas <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--scripts/omap4_usbboot.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/omap4_usbboot.c b/scripts/omap4_usbboot.c
index 34e53c0..e521086 100644
--- a/scripts/omap4_usbboot.c
+++ b/scripts/omap4_usbboot.c
@@ -78,7 +78,7 @@ int read_asic_id(struct usb_handle *usb)
const uint32_t msg_getid = 0xF0030003;
int i, j, k, ret;
uint8_t id[81];
- char line[LINEWIDTH*3+8];
+ char line[LINEWIDTH*3+5];
printf("reading ASIC ID\n");
memset(id , 0xee, sizeof(id));
@@ -96,8 +96,7 @@ int read_asic_id(struct usb_handle *usb)
sprintf(line, "%02X: ", i);
for (j = 0; j < LINEWIDTH && j < sizeof(id)-i; j++)
sprintf(line+4+j*3, "%02X ", id[i+j]);
- line[4+j*3+0] = '\n';
- line[4+j*3+1] = 0;
+ line[4+j*3] = 0;
puts(line);
}
ret = 0;