Thread (8 messages) flat view 8 messages, 4 authors, 2020-11-18
STALE2114d

[PATCH] list-objects-filter-options: fix function name in BUG

From: Martin Ågren <hidden>
Date: 2020-11-14 08:44:05
Subsystem: the rest · Maintainer: Linus Torvalds

Fix the function name we give in the BUG message. It's "config", not
"choice".

Signed-off-by: Martin Ågren <redacted>
---
 list-objects-filter-options.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/list-objects-filter-options.c b/list-objects-filter-options.c
index defd3dfd10..d2d1c81caf 100644
--- a/list-objects-filter-options.c
+++ b/list-objects-filter-options.c
@@ -35,7 +35,7 @@ const char *list_object_filter_config_name(enum list_objects_filter_choice c)
 		/* not a real filter type; just the count of all filters */
 		break;
 	}
-	BUG("list_object_filter_choice_name: invalid argument '%d'", c);
+	BUG("list_object_filter_config_name: invalid argument '%d'", c);
 }
 
 /*
-- 
2.29.2.454.gaff20da3a2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help