projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gpio: da8xx_gpio: Fix compiler warning
[oweals/u-boot.git]
/
tools
/
proftool.c
diff --git
a/tools/proftool.c
b/tools/proftool.c
index 348295198cd3d061dd8fc83baa10a6040f25e338..fecb9d6e99c254e412db87a4a22eb4a4d6caca91 100644
(file)
--- a/
tools/proftool.c
+++ b/
tools/proftool.c
@@
-1,7
+1,6
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (c) 2013 Google, Inc
/*
* Copyright (c) 2013 Google, Inc
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
/* Decode and dump U-Boot profiling information */
*/
/* Decode and dump U-Boot profiling information */
@@
-16,6
+15,7
@@
#include <string.h>
#include <unistd.h>
#include <sys/param.h>
#include <string.h>
#include <unistd.h>
#include <sys/param.h>
+#include <sys/types.h>
#include <compiler.h>
#include <trace.h>
#include <compiler.h>
#include <trace.h>
@@
-205,12
+205,12
@@
static struct func_info *find_caller_by_offset(uint32_t offset)
return low >= 0 ? &func_list[low] : NULL;
}
return low >= 0 ? &func_list[low] : NULL;
}
-static int read_calls(FILE *fin,
in
t count)
+static int read_calls(FILE *fin,
size_
t count)
{
struct trace_call *call_data;
int i;
{
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");
call_list = (struct trace_call *)calloc(count, sizeof(*call_data));
if (!call_list) {
error("Cannot allocate call_list\n");
@@
-431,9
+431,10
@@
static int read_trace_config(FILE *fin)
err = regcomp(&line->regex, tok, REG_NOSUB);
if (err) {
err = regcomp(&line->regex, tok, REG_NOSUB);
if (err) {
+ int r = regex_report_error(&line->regex, err,
+ "compile", tok);
free(line);
free(line);
- return regex_report_error(&line->regex, err, "compile",
- tok);
+ return r;
}
/* link this new one to the end of the list */
}
/* link this new one to the end of the list */