Merging upstream version 2.1~rc0 (Closes: #1015722).
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
9489161ac8
commit
316e846c86
504 changed files with 6751 additions and 2957 deletions
17
plugin.c
17
plugin.c
|
@ -1,3 +1,4 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -6,14 +7,22 @@
|
|||
#include "plugin.h"
|
||||
#include "util/argconfig.h"
|
||||
|
||||
#include <libnvme.h>
|
||||
|
||||
static int version(struct plugin *plugin)
|
||||
{
|
||||
struct program *prog = plugin->parent;
|
||||
|
||||
if (plugin->name)
|
||||
printf("%s %s version %s\n", prog->name, plugin->name, plugin->version);
|
||||
else
|
||||
printf("%s version %s\n", prog->name, prog->version);
|
||||
if (plugin->name) {
|
||||
printf("%s %s version %s (git %s)\n",
|
||||
prog->name, plugin->name, plugin->version, GIT_VERSION);
|
||||
} else {
|
||||
printf("%s version %s (git %s)\n",
|
||||
prog->name, prog->version, GIT_VERSION);
|
||||
}
|
||||
printf("libnvme version %s (git %s)\n",
|
||||
nvme_get_version(NVME_VERSION_PROJECT),
|
||||
nvme_get_version(NVME_VERSION_GIT));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue