1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in
Show
Ignore:
Timestamp:
04/19/11 19:42:54 (2 years ago)
Author:
chrfranke
Message:

os_linux.cpp: Shorten version string.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/smartmontools/os_linux.cpp

    r3293 r3317  
    28282828{ 
    28292829  struct utsname u; 
    2830   return strprintf("%s-%s", SMARTMONTOOLS_BUILD_HOST, 
    2831     (!uname(&u) ? u.release : "?")); 
     2830  if (!uname(&u)) 
     2831    return strprintf("%s-linux-%s", u.machine, u.release); 
     2832  else 
     2833    return SMARTMONTOOLS_BUILD_HOST; 
    28322834} 
    28332835