Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175413
b: refs/heads/master
c: 8498845
h: refs/heads/master
i:
  175411: 93c98c2
v: v3
  • Loading branch information
Masami Hiramatsu authored and Ingo Molnar committed Dec 7, 2009
1 parent 136091c commit a290695
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e1d2017b24fb31602f1128e6a8b2afc54c9283cd
refs/heads/master: 849884508ecbe2d220131840e4cc7c32ca24ebe3
5 changes: 4 additions & 1 deletion trunk/tools/perf/util/probe-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
#define semantic_error(msg ...) die("Semantic error :" msg)

/* If there is no space to write, returns -E2BIG. */
static int e_snprintf(char *str, size_t size, const char *format, ...)
__attribute__((format(printf, 3, 4)));

static int e_snprintf(char *str, size_t size, const char *format, ...)
{
int ret;
Expand Down Expand Up @@ -258,7 +261,7 @@ int synthesize_perf_probe_event(struct probe_point *pp)
ret = e_snprintf(buf, MAX_CMDLEN, "%s%s%s%s", pp->function,
offs, pp->retprobe ? "%return" : "", line);
else
ret = e_snprintf(buf, MAX_CMDLEN, "%s%s%s%s", pp->file, line);
ret = e_snprintf(buf, MAX_CMDLEN, "%s%s", pp->file, line);
if (ret <= 0)
goto error;
len = ret;
Expand Down

0 comments on commit a290695

Please sign in to comment.