From c6412978e7310aeb7305c3ce5a4c7fb4d929c131 Mon Sep 17 00:00:00 2001 From: Vlad Apostolov Date: Mon, 2 Oct 2006 15:47:47 +0000 Subject: [PATCH] pv 955274 - Print out hex instead of char for non-printable characters. Merge of master-melb:xfs-cmds:27095a by kenmcd. pv 955274 - Print out hex instead of char for non-printable characters. --- dmapi/src/suite2/src/test_invis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dmapi/src/suite2/src/test_invis.c b/dmapi/src/suite2/src/test_invis.c index 67412fb8..2db3524a 100644 --- a/dmapi/src/suite2/src/test_invis.c +++ b/dmapi/src/suite2/src/test_invis.c @@ -325,8 +325,8 @@ main( statbuf.st_size : (1000000*(dm_off_t)(ch)); if (dm_write_invis(sid, hanp, hlen, DM_NO_TOKEN, 0, offset, 1, bufp)==-1){ - printf("Error invis-writing %s at byte %u million: %s\n", - (u_char *)bufp, (unsigned int)ch, ERR_NAME); + printf("Error invis-writing 0x%x at byte 0x%x million: %s\n", + *(u_char *)bufp, (unsigned int)ch, ERR_NAME); } else if (dm_read_invis(sid, hanp, hlen, DM_NO_TOKEN, offset, 1, bufp)==-1){ -- 2.47.3