git: 0fda88fa010f - stable/13 - glabel(8): Fix debug message for already existing labels
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Apr 2026 09:34:46 UTC
The branch stable/13 has been updated by michaelo:
URL: https://cgit.FreeBSD.org/src/commit/?id=0fda88fa010fab36cfa4e1965c6b84d6f5ca5655
commit 0fda88fa010fab36cfa4e1965c6b84d6f5ca5655
Author: Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2026-04-14 08:38:59 +0000
Commit: Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-04-22 09:34:30 +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
(cherry picked from commit 92c69c791c436eb966fab806393b70e53cde6874)
---
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 a38ed8294202..f8a3c67fc5d9 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);