* [PATCH] Add version number to --help output
@ 2011-07-30 9:47 Bruce Cran
2011-07-30 10:56 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Bruce Cran @ 2011-07-30 9:47 UTC (permalink / raw)
To: Jens Axboe; +Cc: fio
[-- Attachment #1: Type: text/plain, Size: 106 bytes --]
It's useful to see what version is being used with --help. The attached
patch adds that.
--
Bruce Cran
[-- Attachment #2: fio.diff --]
[-- Type: text/plain, Size: 420 bytes --]
diff --git a/init.c b/init.c
index 98e10f7..9b386c5 100644
--- a/init.c
+++ b/init.c
@@ -1021,6 +1021,7 @@ static int setup_thread_area(void)
static void usage(const char *name)
{
+ printf("%s\n", fio_version_string);
printf("%s [options] [job options] <job file(s)>\n", name);
printf("\t--debug=options\tEnable debug logging\n");
printf("\t--output\tWrite output to file\n");
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Add version number to --help output
2011-07-30 9:47 [PATCH] Add version number to --help output Bruce Cran
@ 2011-07-30 10:56 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2011-07-30 10:56 UTC (permalink / raw)
To: Bruce Cran; +Cc: fio
On 2011-07-30 11:47, Bruce Cran wrote:
> It's useful to see what version is being used with --help. The attached
> patch adds that.
Thanks, aplied.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-30 10:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-30 9:47 [PATCH] Add version number to --help output Bruce Cran
2011-07-30 10:56 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox