]> git.ipfire.org Git - thirdparty/nqptp.git/commitdiff
slight change in format of output of the smi in the -V command.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 20 May 2023 15:46:17 +0000 (16:46 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 20 May 2023 15:46:17 +0000 (16:46 +0100)
nqptp.c

diff --git a/nqptp.c b/nqptp.c
index 89d47c132aabd5e3cab30fea3f10094e658493fb..ee6efe59d961f44412cb1c9c694bc4d53d4c255c 100644 (file)
--- a/nqptp.c
+++ b/nqptp.c
@@ -131,12 +131,12 @@ int main(int argc, char **argv) {
       if (strcmp(argv[i] + 1, "V") == 0) {
 #ifdef CONFIG_USE_GIT_VERSION_STRING
         if (git_version_string[0] != '\0')
-          fprintf(stdout, "Version: %s. Shared Memory Interface Version: smi-%u.\n", git_version_string,
+          fprintf(stdout, "Version: %s. Shared Memory Interface Version: smi%u.\n", git_version_string,
                   NQPTP_SHM_STRUCTURES_VERSION);
         else
 #endif
 
-          fprintf(stdout, "Version: %s. Shared Memory Interface Version: smi-%u.\n", VERSION,
+          fprintf(stdout, "Version: %s. Shared Memory Interface Version: smi%u.\n", VERSION,
                   NQPTP_SHM_STRUCTURES_VERSION);
         exit(EXIT_SUCCESS);
       } else if (strcmp(argv[i] + 1, "vvv") == 0) {
@@ -163,11 +163,11 @@ int main(int argc, char **argv) {
 
 #ifdef CONFIG_USE_GIT_VERSION_STRING
   if (git_version_string[0] != '\0')
-    debug(1, "Version: %s, smi-%u. Clock ID: \"%" PRIx64 "\".", git_version_string,
+    debug(1, "Version: %s, smi%u. Clock ID: \"%" PRIx64 "\".", git_version_string,
           NQPTP_SHM_STRUCTURES_VERSION, get_self_clock_id());
   else
 #endif
-    debug(1, "Version: %s, smi-%u. Clock ID: \"%" PRIx64 "\".", VERSION,
+    debug(1, "Version: %s, smi%u. Clock ID: \"%" PRIx64 "\".", VERSION,
           NQPTP_SHM_STRUCTURES_VERSION, get_self_clock_id());
 
   // debug(1, "size of a clock entry is %u bytes.", sizeof(clock_source_private_data));