scripts:force conversion argument type
PATCH 1/1 scripts:force conversion argument type
scripts:force conversion argument type
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%d\n" , (int )best_idx[i]);printf ("\n" ); }
Signature · 1 line
2.18.2
Quoted 12 lines · Dong Chuanjian
scripts:force conversion argument type
Signed-off-by Dong Chuanjian <[email protected]>--- scripts/kallsyms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/kallsyms.c +0
-0
scripts/kallsyms.c static void write_src(void) · line 501
Quoted 5 lines
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%d\n" , (int )best_idx[i]);
Or (better) you could use %u instead of %d to print the unsigned int value.
Quoted 3 lines
scripts/kallsyms.c +0
-0printf ("\n" ); }
Signature · 1 line
~Randy