summaryrefslogtreecommitdiffstats
path: root/disk-utils/elvtune.c
diff options
context:
space:
mode:
authorKarel Zak2007-07-27 12:12:00 +0200
committerKarel Zak2007-07-27 12:12:00 +0200
commit8e522bb7e9c051a5123e05d8af302b0a1709fe98 (patch)
tree29b7f1e0a791b10cec8a69605d1aa2a33affd13c /disk-utils/elvtune.c
parentbuild-sys: fix directories in EXTRA_DIST (diff)
downloadkernel-qcow2-util-linux-8e522bb7e9c051a5123e05d8af302b0a1709fe98.tar.gz
kernel-qcow2-util-linux-8e522bb7e9c051a5123e05d8af302b0a1709fe98.tar.xz
kernel-qcow2-util-linux-8e522bb7e9c051a5123e05d8af302b0a1709fe98.zip
remove hardcoded package name from some utils
We have PACKAGE_STRING in config.h that includes package name and version. It's better to use this macro that hardcoded strings. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/elvtune.c')
-rw-r--r--disk-utils/elvtune.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/disk-utils/elvtune.c b/disk-utils/elvtune.c
index ec3083b3f..dc264658f 100644
--- a/disk-utils/elvtune.c
+++ b/disk-utils/elvtune.c
@@ -46,7 +46,7 @@ typedef struct blkelv_ioctl_arg_s {
static void
usage(void) {
- fprintf(stderr, "elvtune (%s%s)\n", "util-linux-", VERSION);
+ fprintf(stderr, "elvtune (%s)\n", PACKAGE_STRING);
fprintf(stderr, _("usage:\n"));
fprintf(stderr, "\telvtune [-r r_lat] [-w w_lat] [-b b_lat]"
" /dev/blkdev1 [/dev/blkdev2...]\n");
@@ -58,7 +58,7 @@ usage(void) {
static void
version(void) {
- fprintf(stderr, "elvtune (%s%s)\n", "util-linux-", VERSION);
+ fprintf(stderr, "elvtune (%s)\n", PACKAGE_STRING);
}
#define MAKE_VERSION(p,q,r) (65536*(p) + 256*(q) + (r))