Skip to content

Commit

Permalink
numastat: Print package version number instead of own.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Feb 2, 2024
1 parent d62569e commit 67984e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ numactl_LDADD = libnuma.la
numactl_CFLAGS = $(AM_CFLAGS) -DVERSION=\"$(shell cat ${srcdir}/VERSION)\"

numastat_SOURCES = numastat.c
numastat_CFLAGS = $(AM_CFLAGS) -std=gnu99
numastat_CFLAGS = $(AM_CFLAGS) -std=gnu99 -DVERSION=\"$(shell cat ${srcdir}/VERSION)\"

numademo_SOURCES = numademo.c stream_lib.c stream_lib.h mt.c mt.h clearcache.c util.c clearcache.h
numademo_CPPFLAGS = $(AM_CPPFLAGS) -DHAVE_STREAM_LIB -DHAVE_MT -DHAVE_CLEAR_CACHE
Expand Down
3 changes: 1 addition & 2 deletions numastat.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,7 @@ static double huge_page_size_in_bytes = 0;

static void display_version_and_exit(void)
{
char *version_string = "20130723";
printf("%s version: %s: %s\n", prog_name, version_string, __DATE__);
printf("%s\n", VERSION);
exit(EXIT_SUCCESS);
}

Expand Down

0 comments on commit 67984e5

Please sign in to comment.