From: Jens Axboe Date: Wed, 7 May 2008 12:28:22 +0000 (+0200) Subject: Put the logs in the current directory X-Git-Tag: fio-1.21-rc1~20^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=748b23a36509240af1debf5f7f3ca8ef153548ea;p=fio.git Put the logs in the current directory It's nice to prefix the log with the proper job name, but that meant that it would store them in weird places if you used /dev/sda for the input device, for instance. Signed-off-by: Jens Axboe --- diff --git a/log.c b/log.c index 15de3c24..790d3a1e 100644 --- a/log.c +++ b/log.c @@ -465,8 +465,9 @@ void __finish_log(struct io_log *log, const char *name) void finish_log(struct thread_data *td, struct io_log *log, const char *name) { - char file_name[256]; + char file_name[256], *p; snprintf(file_name, 200, "%s_%s.log", td->o.name, name); - __finish_log(log, file_name); + p = basename(file_name); + __finish_log(log, p); }