From d36c0f4154dc37ba3b48a879828f87e5cfdb890a Mon Sep 17 00:00:00 2001 From: Giso Grimm Date: Sat, 25 May 2024 15:11:05 +0200 Subject: [PATCH] update device kernel information --- libov | 2 +- src/ovbox_version.cc | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/libov b/libov index c5376b2..42bdebf 160000 --- a/libov +++ b/libov @@ -1 +1 @@ -Subproject commit c5376b2389303db0f8feda0002fc2b9229ee6c06 +Subproject commit 42bdebffff6f198a00c905eb7b5e3d4841d20730 diff --git a/src/ovbox_version.cc b/src/ovbox_version.cc index 504e2d9..3ec9101 100644 --- a/src/ovbox_version.cc +++ b/src/ovbox_version.cc @@ -21,10 +21,19 @@ #include "ov_client_orlandoviols.h" #include "ov_render_tascar.h" #include +#include int main(int argc, char** argv) { - std::cout << get_libov_version() << "\n"; + struct utsname buffer; + errno = 0; + if(uname(&buffer) != 0) { + perror("uname"); + exit(EXIT_FAILURE); + } + std::cout << get_libov_version() << " " << buffer.sysname << " " + << buffer.release << " (" << buffer.machine << ")" + << "\n"; return 0; }