Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxxx> --- utils/blkmapd/device-process.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/utils/blkmapd/device-process.c b/utils/blkmapd/device-process.c index 0584bf9..ea8b8ec 100644 --- a/utils/blkmapd/device-process.c +++ b/utils/blkmapd/device-process.c @@ -64,10 +64,12 @@ static char *pretty_sig(char *sig, uint32_t siglen) } sprintf(rs, "0x%0llx", sigval); } else { - if (siglen > sizeof rs - 1) - siglen = sizeof rs - 1; + if (siglen > sizeof rs - 4) { + siglen = sizeof rs - 4; + sprintf(&rs[siglen], "..."); + } else + rs[siglen] = '\0'; memcpy(rs, sig, siglen); - rs[siglen] = '\0'; } return rs; } -- 1.7.2.3 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html