projects
/
platform
/
upstream
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.17.0
[platform/upstream/git.git]
/
trace.c
diff --git
a/trace.c
b/trace.c
index
b7530b5
..
7f3b08e
100644
(file)
--- a/
trace.c
+++ b/
trace.c
@@
-131,7
+131,6
@@
static void print_trace_line(struct trace_key *key, struct strbuf *buf)
{
strbuf_complete_line(buf);
trace_write(key, buf->buf, buf->len);
{
strbuf_complete_line(buf);
trace_write(key, buf->buf, buf->len);
- strbuf_release(buf);
}
static void trace_vprintf_fl(const char *file, int line, struct trace_key *key,
}
static void trace_vprintf_fl(const char *file, int line, struct trace_key *key,
@@
-144,6
+143,7
@@
static void trace_vprintf_fl(const char *file, int line, struct trace_key *key,
strbuf_vaddf(&buf, format, ap);
print_trace_line(key, &buf);
strbuf_vaddf(&buf, format, ap);
print_trace_line(key, &buf);
+ strbuf_release(&buf);
}
static void trace_argv_vprintf_fl(const char *file, int line,
}
static void trace_argv_vprintf_fl(const char *file, int line,
@@
-157,8
+157,9
@@
static void trace_argv_vprintf_fl(const char *file, int line,
strbuf_vaddf(&buf, format, ap);
strbuf_vaddf(&buf, format, ap);
- sq_quote_argv
(&buf, argv, 0
);
+ sq_quote_argv
_pretty(&buf, argv
);
print_trace_line(&trace_default_key, &buf);
print_trace_line(&trace_default_key, &buf);
+ strbuf_release(&buf);
}
void trace_strbuf_fl(const char *file, int line, struct trace_key *key,
}
void trace_strbuf_fl(const char *file, int line, struct trace_key *key,
@@
-171,6
+172,7
@@
void trace_strbuf_fl(const char *file, int line, struct trace_key *key,
strbuf_addbuf(&buf, data);
print_trace_line(key, &buf);
strbuf_addbuf(&buf, data);
print_trace_line(key, &buf);
+ strbuf_release(&buf);
}
static void trace_performance_vprintf_fl(const char *file, int line,
}
static void trace_performance_vprintf_fl(const char *file, int line,
@@
-190,6
+192,7
@@
static void trace_performance_vprintf_fl(const char *file, int line,
}
print_trace_line(&trace_perf_key, &buf);
}
print_trace_line(&trace_perf_key, &buf);
+ strbuf_release(&buf);
}
#ifndef HAVE_VARIADIC_MACROS
}
#ifndef HAVE_VARIADIC_MACROS
@@
-426,6
+429,6
@@
void trace_command_performance(const char **argv)
atexit(print_command_performance_atexit);
strbuf_reset(&command_line);
atexit(print_command_performance_atexit);
strbuf_reset(&command_line);
- sq_quote_argv
(&command_line, argv, 0
);
+ sq_quote_argv
_pretty(&command_line, argv
);
command_start_time = getnanotime();
}
command_start_time = getnanotime();
}