X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tools%2Fproftool.c;h=ea7d07a277e97ae9b6c5b473f2764bbdc63b6f04;hb=6f38d91158e7e4199753b79e0a25c1a65175aba4;hp=c1803fa78a761b7770af7a031442f1e057c4001d;hpb=e8f80a5a58c9b506453cc0780687e8ed457d30a6;p=platform%2Fkernel%2Fu-boot.git diff --git a/tools/proftool.c b/tools/proftool.c index c1803fa..ea7d07a 100644 --- a/tools/proftool.c +++ b/tools/proftool.c @@ -205,12 +205,12 @@ static struct func_info *find_caller_by_offset(uint32_t offset) return low >= 0 ? &func_list[low] : NULL; } -static int read_calls(FILE *fin, int count) +static int read_calls(FILE *fin, size_t count) { struct trace_call *call_data; int i; - notice("call count: %d\n", count); + notice("call count: %zu\n", count); call_list = (struct trace_call *)calloc(count, sizeof(*call_data)); if (!call_list) { error("Cannot allocate call_list\n"); @@ -532,7 +532,7 @@ static int make_ftrace(void) return 0; } -static int prof_tool(int argc, char * const argv[], +static int prof_tool(int argc, char *const argv[], const char *prof_fname, const char *map_fname, const char *trace_config_fname) {