Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/gpt gpt_uuid_parse does not set errno ...
details: https://anonhg.NetBSD.org/src/rev/8cc206faffe9
branches: trunk
changeset: 460186:8cc206faffe9
user: christos <christos%NetBSD.org@localhost>
date: Fri Oct 11 23:04:52 2019 +0000
description:
gpt_uuid_parse does not set errno ...
diffstat:
sbin/gpt/gpt.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 2e81be0d5733 -r 8cc206faffe9 sbin/gpt/gpt.c
--- a/sbin/gpt/gpt.c Fri Oct 11 21:56:55 2019 +0000
+++ b/sbin/gpt/gpt.c Fri Oct 11 23:04:52 2019 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index