summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-02-22 18:11:30 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-02-22 18:11:30 +0100
commit4e1a043cf01dd1358661b951aecaaf0183d5b9bf (patch)
tree8c3619026d09a102ab2ce37ddf83fefbeb4e5717
parentfd0a86a572038ef091b116e860d262137245d75a (diff)
downloadrockbox-4e1a043cf01dd1358661b951aecaaf0183d5b9bf.tar.gz
rockbox-4e1a043cf01dd1358661b951aecaaf0183d5b9bf.tar.bz2
rockbox-4e1a043cf01dd1358661b951aecaaf0183d5b9bf.zip
imxtools/scsitool: improve output formatting
Change-Id: Ifc5b5252e1342f381356f7bd5c2fed5ad8beddfe
-rw-r--r--utils/imxtools/scsitools/scsitool.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/imxtools/scsitools/scsitool.c b/utils/imxtools/scsitools/scsitool.c
index 2c82d5b841..131af22dce 100644
--- a/utils/imxtools/scsitools/scsitool.c
+++ b/utils/imxtools/scsitools/scsitool.c
@@ -555,7 +555,7 @@ static int do_info(void)
if(!ret && len == 4)
{
u.u32 = fix_endian32be(u.u32);
- cprintf_field(" Info 0: ", "%lu", (unsigned long)u.u32);
+ cprintf_field(" Info 0: ", "%lu\n", (unsigned long)u.u32);
}
len = 4;
@@ -563,7 +563,7 @@ static int do_info(void)
if(!ret && len == 4)
{
u.u32 = fix_endian32be(u.u32);
- cprintf_field(" Info 1: ", "%lu", (unsigned long)u.u32);
+ cprintf_field(" Info 1: ", "%lu\n", (unsigned long)u.u32);
}
len = 2;
@@ -575,6 +575,7 @@ static int do_info(void)
ret = stmp_get_serial_number(1, u.buf, &len);
cprintf_field(" Serial Number:", " ");
print_hex(u.buf, len);
+ cprintf(OFF, "\n");
}
len = 2;