git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
MÅMartin Ågren <martin.agren@gmail.com>
Date
Nov 14, 2020, 08:43 UTC
Message-ID
<20201114084327.14891-1-martin.agren@gmail.com>

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

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
---
 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
Next: Jeff King
Message 1 of 8 in “list-objects-filter-options: fix function name in BUG”
  1. list-objects-filter-options: fix function name in BUGMartin Ågren, Nov 14, 2020
  2. Jeff KingNov 17, 2020
  3. Martin ÅgrenNov 17, 2020
  4. Jeff KingNov 17, 2020
  5. Eric SunshineNov 17, 2020
  6. Jeff KingNov 18, 2020
  7. Jonathan NiederNov 18, 2020
  8. Martin ÅgrenNov 18, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.