summaryrefslogtreecommitdiff
path: root/sbin/disklabel/editor.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2010-09-23 13:54:22 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2010-09-23 13:54:22 +0000
commit7fdd2f645f69259da6f3791bd23898d143e7391a (patch)
treef38cc4c3bc72b45a4fa4bb459142896610244be2 /sbin/disklabel/editor.c
parent7220b65bf7241f5d37425a848327e4e14be63387 (diff)
Print disklabel UIDs using printf/fprintf instead of using the hand rolled
uid_print() function. ok krw@
Diffstat (limited to 'sbin/disklabel/editor.c')
-rw-r--r--sbin/disklabel/editor.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c
index a3349e30279..e84e2b67c91 100644
--- a/sbin/disklabel/editor.c
+++ b/sbin/disklabel/editor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: editor.c,v 1.244 2010/08/12 23:32:07 tedu Exp $ */
+/* $OpenBSD: editor.c,v 1.245 2010/09/23 13:54:21 jsing Exp $ */
/*
* Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -1619,9 +1619,10 @@ set_uid(struct disklabel *lp)
char *s;
int i;
- printf("The disklabel UID is currently: ");
- uid_print(stdout, lp);
- printf("\n");
+ printf("The disklabel UID is currently: "
+ "%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx\n",
+ lp->d_uid[0], lp->d_uid[1], lp->d_uid[2], lp->d_uid[3],
+ lp->d_uid[4], lp->d_uid[5], lp->d_uid[6], lp->d_uid[7]);
do {
s = getstring("uid", "The disklabel UID, given as a 16 "