From 3e7f5e0f4743de8eca015e690c8b466037db0e59 Mon Sep 17 00:00:00 2001 From: Edmunt Pienkowsky Date: Sun, 26 May 2024 10:28:07 +0200 Subject: [PATCH] cli: improve show version command Display ALSA and SQLite versions the module was build against. --- src/cli.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cli.c b/src/cli.c index 405d33f6..cc5d8231 100644 --- a/src/cli.c +++ b/src/cli.c @@ -9,6 +9,7 @@ bg */ #include +#include #include #include "ast_config.h" @@ -366,8 +367,10 @@ static char* cli_show_version(struct ast_cli_entry* e, int cmd, struct ast_cli_a return CLI_SHOWUSAGE; } - ast_cli(a->fd, "\n%s: %s, Version %s, Revision %s\nProject Home: %s\nBug Reporting: %s\nALSA version: %s, SQLite version: %s\n\n", AST_MODULE, - MODULE_DESCRIPTION, MODULE_VERSION, PACKAGE_REVISION, MODULE_URL, MODULE_BUGREPORT, snd_asoundlib_version(), sqlite3_libversion()); + ast_cli(a->fd, + "\n" AST_MODULE ": " MODULE_DESCRIPTION ", Version " MODULE_VERSION ", Revision " PACKAGE_REVISION "\nProject Home: " MODULE_URL + "\nBug Reporting: " MODULE_BUGREPORT "\nALSA version: %s [" SND_LIB_VERSION_STR "], SQLite version: %s [" SQLITE_VERSION "]\n\n", + snd_asoundlib_version(), sqlite3_libversion()); return CLI_SUCCESS; }