Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
aix: improve readability of os version
Browse files Browse the repository at this point in the history
uname on AIX reports, e.g. 6.1 as version == 6, release == 1.
The code was previously printing this as:
  OS version: AIX 1 6
Fix so that on AIX this is now:
  OS version: AIX 6.1
  • Loading branch information
richardlau committed Feb 9, 2017
1 parent e5bca07 commit a908b21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/node_report.cc
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,11 @@ static void PrintVersionInformation(FILE* fp, Isolate* isolate) {
// Print operating system and machine information (Unix/OSX)
struct utsname os_info;
if (uname(&os_info) == 0) {
#if defined(_AIX)
fprintf(fp, "\nOS version: %s %s.%s\n", os_info.sysname, os_info.version, os_info.release);
#else
fprintf(fp, "\nOS version: %s %s %s\n", os_info.sysname, os_info.release, os_info.version);
#endif
#if defined(__GLIBC__)
fprintf(fp, "(glibc: %d.%d)\n", __GLIBC__, __GLIBC_MINOR__);
#endif
Expand Down

0 comments on commit a908b21

Please sign in to comment.