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

[PATCH] attr: make it build with DEBUG_ATTR again

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Jan 15, 2013, 02:49 UTC
Message-ID
<1358218166-16592-1-git-send-email-pclouds@gmail.com>

Commit 82dce99 (attr: more matching optimizations from .gitignore - 2012-10-15) changed match_attr structure but it did not update DEBUG_ATTR-specific code. This fixes it.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 attr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/attr.c b/attr.c
index 097ae87..0575bf7 100644
--- a/attr.c
+++ b/attr.c
@@ -693,7 +693,7 @@ static int fill_one(const char *what, struct match_attr *a, int rem)
 
 		if (*n == ATTR__UNKNOWN) {
 			debug_set(what,
-				  a->is_macro ? a->u.attr->name : a->u.pattern,
+				  a->is_macro ? a->u.attr->name : a->u.pat.pattern,
 				  attr, v);
 			*n = v;
 			rem--;
-- 
1.8.0.rc3.18.g0d9b108
Message 1 of 1 in “attr: make it build with DEBUG_ATTR again”
  1. attr: make it build with DEBUG_ATTR againNguyễn Thái Ngọc Duy, Jan 15, 2013

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.