scripts:modify output format
PATCH 1/1 scripts:modify output format
scripts:modify output format
Signed-off-by Dong Chuanjian <[email protected]>
--- scripts/kallsyms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/kallsyms.c +1 -1
@@ -498,7 +498,7 @@ static void write_src(void)output_label ("kallsyms_token_index" );for (i =0 ; i <256 ; i++) -printf ("\t.short\t%d\n" , best_idx[i]); +printf ("\t.short\t%u\n" , best_idx[i]);printf ("\n" ); }
Signature · 1 line
2.18.2
Hi,
The change looks good to me, but there are a few other "process" problems.
1. Was there a compiler warning that caused this patch? If so, then tell us about it.
2. This is v2 of the patch. You should describe what changed between v1 and v2 (below the first --- line).
Thanks.
Quoted 20 lines · Dong Chuanjian
scripts:modify output format
Signed-off-by Dong Chuanjian <[email protected]>--- scripts/kallsyms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/kallsyms.c +1
-1@@ -498,7 +498,7 @@ static void write_src(void)output_label ("kallsyms_token_index" );for (i =0 ; i <256 ; i++) -printf ("\t.short\t%d\n" , best_idx[i]); +printf ("\t.short\t%u\n" , best_idx[i]);printf ("\n" ); }
Signature · 1 line
~Randy
The compiler does not have warnings, but the definition of the output variable is "unsigned int",So there will be this patch.