log: no format for the short arrays in 'hex-dump'

This commit is contained in:
Viktor Tarasov 2014-01-01 17:51:54 +01:00
parent 0fa475ee5f
commit 3ab84b3b35
1 changed files with 2 additions and 4 deletions

View File

@ -215,10 +215,8 @@ sc_dump_hex(const u8 * in, size_t count)
return dump_buf;
for (ii=0; ii<count; ii++) {
if (!(ii%16)) {
if (!ii)
snprintf(dump_buf + offs, size - offs, ":\n");
else if (!(ii%48))
if (ii && !(ii%16)) {
if (!(ii%48))
snprintf(dump_buf + offs, size - offs, "\n");
else
snprintf(dump_buf + offs, size - offs, " ");