projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d99d14
)
[PATCH] blkparse: can't return on-stack variables
author
Jens Axboe
<axboe@suse.de>
Fri, 23 Sep 2005 09:12:48 +0000
(11:12 +0200)
committer
Jens Axboe
<axboe@suse.de>
Fri, 23 Sep 2005 09:12:48 +0000
(11:12 +0200)
Just make it static, access is serialized to it.
blkparse.c
patch
|
blob
|
blame
|
history
diff --git
a/blkparse.c
b/blkparse.c
index 3ebbcdb7f34788c5296ccd530786aaacfc31a73d..b5da1d105f69ac207c63f51712a6fdfe7627b0a9 100644
(file)
--- a/
blkparse.c
+++ b/
blkparse.c
@@
-918,7
+918,7
@@
static char *fmt_select(int fmt_spec, struct blk_io_trace *t,
unsigned long long elapsed)
{
char *fmt;
- char scratch_format[1024];
+
static
char scratch_format[1024];
if (override_format[fmt_spec] != NULL)
return override_format[fmt_spec];