Skip to content

Commit

Permalink
update device kernel information
Browse files Browse the repository at this point in the history
  • Loading branch information
gisogrimm committed May 25, 2024
1 parent 9055d52 commit d36c0f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libov
11 changes: 10 additions & 1 deletion src/ovbox_version.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,19 @@
#include "ov_client_orlandoviols.h"
#include "ov_render_tascar.h"
#include <fstream>
#include <sys/utsname.h>

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;
}

Expand Down

0 comments on commit d36c0f4

Please sign in to comment.