git: 92c69c791c43 - main - glabel(8): Fix debug message for already existing labels
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 15 Apr 2026 18:18:46 UTC
The branch main has been updated by michaelo:
URL: https://cgit.FreeBSD.org/src/commit/?id=92c69c791c436eb966fab806393b70e53cde6874
commit 92c69c791c436eb966fab806393b70e53cde6874
Author: Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2026-04-14 08:38:59 +0000
Commit: Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-04-15 18:18:32 +0000
glabel(8): Fix debug message for already existing labels
Remove the duplicate (incorrect) name.
PR: 294542
Reviewed by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D56400
---
sys/geom/label/g_label.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/geom/label/g_label.c b/sys/geom/label/g_label.c
index faefbd7c2ef6..85d55444f91a 100644
--- a/sys/geom/label/g_label.c
+++ b/sys/geom/label/g_label.c
@@ -251,8 +251,8 @@ g_label_create(struct gctl_req *req, struct g_class *mp, struct g_provider *pp,
if ((pp2->flags & G_PF_ORPHAN) != 0)
continue;
if (strcmp(pp2->name, name) == 0) {
- G_LABEL_DEBUG(1, "Label %s(%s) already exists (%s).",
- label, name, pp->name);
+ G_LABEL_DEBUG(1, "Label %s (%s) already exists.",
+ label, name);
if (req != NULL) {
gctl_error(req, "Provider %s already exists.",
name);