summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorKrishnan Parthasarathi <kp@gluster.com>2012-03-09 12:36:49 +0530
committerVijay Bellur <vijay@gluster.com>2012-03-12 07:59:50 -0700
commit2056df6f5e9ae7ccc6bb1b8f0b036f206b218999 (patch)
treed86842078f20454a92d1c1a95a5006112fd34e1b /libglusterfs
parent05318789c5dbc92634a03e355acddbffb122b64e (diff)
core: Made lkowner_unparse use 'type-safe' format-specifier
Change-Id: Ibd39edb5fccef525f7f0929401f7329508c59ced BUG: 767229 Signed-off-by: Krishnan Parthasarathi <kp@gluster.com> Reviewed-on: http://review.gluster.com/2907 Reviewed-by: Amar Tumballi <amarts@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/lkowner.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/lkowner.h b/libglusterfs/src/lkowner.h
index 5fee17b3d..a1ab7d709 100644
--- a/libglusterfs/src/lkowner.h
+++ b/libglusterfs/src/lkowner.h
@@ -49,7 +49,7 @@ lkowner_unparse (gf_lkowner_t *lkowner, char *buf, int buf_len)
buf[j] = '-';
j++;
}
- sprintf (&buf[j], "%02x", lkowner->data[i]);
+ sprintf (&buf[j], "%02hhx", lkowner->data[i]);
j += 2;
if (j == buf_len)
break;