Module Name: src
Committed By: christos
Date: Fri Oct 11 23:04:52 UTC 2019
Modified Files:
src/sbin/gpt: gpt.c
Log Message:
gpt_uuid_parse does not set errno ...
To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sbin/gpt/gpt.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/gpt/gpt.c
diff -u src/sbin/gpt/gpt.c:1.80 src/sbin/gpt/gpt.c:1.81
--- src/sbin/gpt/gpt.c:1.80 Mon Jun 24 23:50:18 2019
+++ src/sbin/gpt/gpt.c Fri Oct 11 19:04:52 2019
@@ -35,7 +35,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/gpt.c,v 1.16 2006/07/07 02:44:23 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: gpt.c,v 1.80 2019/06/25 03:50:18 jnemeth Exp $");
+__RCSID("$NetBSD: gpt.c,v 1.81 2019/10/11 23:04:52 christos Exp $");
#endif
#include <sys/param.h>
@@ -1293,7 +1293,7 @@ gpt_uuid_get(gpt_t gpt, gpt_uuid_t *uuid
if (!gpt_uuid_is_nil(*uuid))
return -1;
if (gpt_uuid_parse(optarg, *uuid) != 0) {
- gpt_warn(gpt, "Can't parse uuid");
+ gpt_warnx(gpt, "Can't parse uuid/type `%s'", optarg);
return -1;
}
return 0;