mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	scripts: Fixed printf format mismatch
scripts/kallsyms.c: function write_src: "printf", the #1 format specifier "d" need arg type "int", but the according arg "table_cnt" has type "unsigned int" scripts/recordmcount.c: function do_file: "fprintf", the #1 format specifier "d" need arg type "int", but the according arg "(*w2)(ehdr->e_machine)" has type "unsigned int" scripts/recordmcount.h: function find_secsym_ndx: "fprintf", the #1 format specifier "d" need arg type "int", but the according arg "txtndx" has type "unsigned int" Signed-off-by: nixiaoming <nixiaoming@huawei.com> Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
		
							parent
							
								
									656c107770
								
							
						
					
					
						commit
						ac5db1fc89
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -405,7 +405,7 @@ static void write_src(void)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	output_label("kallsyms_num_syms");
 | 
						output_label("kallsyms_num_syms");
 | 
				
			||||||
	printf("\tPTR\t%d\n", table_cnt);
 | 
						printf("\tPTR\t%u\n", table_cnt);
 | 
				
			||||||
	printf("\n");
 | 
						printf("\n");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* table of offset markers, that give the offset in the compressed stream
 | 
						/* table of offset markers, that give the offset in the compressed stream
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -500,7 +500,7 @@ do_file(char const *const fname)
 | 
				
			||||||
	gpfx = 0;
 | 
						gpfx = 0;
 | 
				
			||||||
	switch (w2(ehdr->e_machine)) {
 | 
						switch (w2(ehdr->e_machine)) {
 | 
				
			||||||
	default:
 | 
						default:
 | 
				
			||||||
		fprintf(stderr, "unrecognized e_machine %d %s\n",
 | 
							fprintf(stderr, "unrecognized e_machine %u %s\n",
 | 
				
			||||||
			w2(ehdr->e_machine), fname);
 | 
								w2(ehdr->e_machine), fname);
 | 
				
			||||||
		fail_file();
 | 
							fail_file();
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -441,7 +441,7 @@ static unsigned find_secsym_ndx(unsigned const txtndx,
 | 
				
			||||||
			return symp - sym0;
 | 
								return symp - sym0;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	fprintf(stderr, "Cannot find symbol for section %d: %s.\n",
 | 
						fprintf(stderr, "Cannot find symbol for section %u: %s.\n",
 | 
				
			||||||
		txtndx, txtname);
 | 
							txtndx, txtname);
 | 
				
			||||||
	fail_file();
 | 
						fail_file();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue