Re: [PATCH v2 5/9] mailmap: debug: fix out-of-order fprintf() arguments

2013-07-15 Thread Junio C Hamano
Eric Sunshine  writes:

> Resolve segmentation fault due to arguments passed in wrong order.
>
> Signed-off-by: Eric Sunshine 

Thanks.  Shows that the debugging support hasn't been in use for
quite a long time X-<.

> ---
>  mailmap.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mailmap.c b/mailmap.c
> index a7e92db..0516354 100644
> --- a/mailmap.c
> +++ b/mailmap.c
> @@ -309,7 +309,7 @@ int map_user(struct string_list *map,
>   struct mailmap_entry *me;
>  
>   debug_mm("map_user: map '%.*s' <%.*s>\n",
> -  *name, *namelen, *emaillen, *email);
> +  *namelen, *name, *emaillen, *email);
>  
>   item = lookup_prefix(map, *email, *emaillen);
>   if (item != NULL) {
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v2 5/9] mailmap: debug: fix out-of-order fprintf() arguments

2013-07-14 Thread Eric Sunshine
Resolve segmentation fault due to arguments passed in wrong order.

Signed-off-by: Eric Sunshine 
---
 mailmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mailmap.c b/mailmap.c
index a7e92db..0516354 100644
--- a/mailmap.c
+++ b/mailmap.c
@@ -309,7 +309,7 @@ int map_user(struct string_list *map,
struct mailmap_entry *me;
 
debug_mm("map_user: map '%.*s' <%.*s>\n",
-*name, *namelen, *emaillen, *email);
+*namelen, *name, *emaillen, *email);
 
item = lookup_prefix(map, *email, *emaillen);
if (item != NULL) {
-- 
1.8.3.2.804.g0da7a53

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html