Re: [PATCH] Use proper print formatter in main function in fixincl.c

2019-01-07 Thread Jonathan Wakely
On 07/01/19 11:01 -0500, NightStrike wrote: On Mon, Jan 7, 2019 at 10:57 AM Jonathan Wakely wrote: On 20/12/18 17:23 -0500, Nicholas Krause wrote: >This fixes the bug id, 71176 to use the proper known >code print formatter type, %lu for size_t rather than >%d which is considered best pratice f

Re: [PATCH] Use proper print formatter in main function in fixincl.c

2019-01-07 Thread NightStrike
On Mon, Jan 7, 2019 at 10:57 AM Jonathan Wakely wrote: > > On 20/12/18 17:23 -0500, Nicholas Krause wrote: > >This fixes the bug id, 71176 to use the proper known > >code print formatter type, %lu for size_t rather than > >%d which is considered best pratice for print statements. > > Well the prop

Re: [PATCH] Use proper print formatter in main function in fixincl.c

2019-01-07 Thread Jonathan Wakely
On 20/12/18 17:23 -0500, Nicholas Krause wrote: This fixes the bug id, 71176 to use the proper known code print formatter type, %lu for size_t rather than %d which is considered best pratice for print statements. Well the proper specifier for size_t is %zu, but since you cast to unsigned long t

[PATCH] Use proper print formatter in main function in fixincl.c

2018-12-20 Thread Nicholas Krause
This fixes the bug id, 71176 to use the proper known code print formatter type, %lu for size_t rather than %d which is considered best pratice for print statements. Signed-off-by: Nicholas Krause --- fixincludes/fixincl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fi

Re: [PATCH] Use proper print formatter in main function in fixincl.c

2018-12-20 Thread nick
On 2018-12-20 4:02 p.m., Joseph Myers wrote: > This is still changing the wrong format specifier (the one corresponding > to apply_ct, which is an int). > Sorry for the dumb mistakes as I seem to have miscounted the variables over in my understanding of the code. I will resend again and sorr

Re: [PATCH] Use proper print formatter in main function in fixincl.c

2018-12-20 Thread Joseph Myers
This is still changing the wrong format specifier (the one corresponding to apply_ct, which is an int). -- Joseph S. Myers jos...@codesourcery.com

[PATCH] Use proper print formatter in main function in fixincl.c

2018-12-19 Thread Nicholas Krause
This fixes the bug id, 71176 to use the proper known code print formatter type, %lu for size_t rather than %d which is considered best pratice for print statements. Signed-off-by: Nicholas Krause --- fixincludes/fixincl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fi

Re: [PATCH] Use proper print formatter in main function in fixincl.c

2018-12-19 Thread Joseph Myers
This patch is wrong for multiple reasons (the %d you're changing is for an int argument, so is correct as-is, and %lu is not portable for size_t, so since we may not be able to assume C99 %zu on the host you'd need to cast the ttl_data_size argument explicitly to unsigned long int to use %lu for

[PATCH] Use proper print formatter in main function in fixincl.c

2018-12-19 Thread Nicholas Krause
This fixes the bug id, 71176 to use the proper known code print formatter type, %lu for size_t rather than %d which is considered best pratice for print statements. Signed-off-by: Nicholas Krause --- fixincludes/fixincl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fixinc