Changeset 371bd7d in mainline for uspace/app/getterm/version.c
- Timestamp:
- 2010-03-27T09:22:17Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36a75a2
- Parents:
- cd82bb1 (diff), eaf22d4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 moved
-
uspace/app/getterm/version.c (moved) (moved from uspace/app/getvc/version.c ) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/getterm/version.c
rcd82bb1 r371bd7d 27 27 */ 28 28 29 /** @addtogroup get vc29 /** @addtogroup getterm 30 30 * @{ 31 31 */ … … 37 37 #include <stdio.h> 38 38 #include <macros.h> 39 #include "get vc.h"39 #include "getterm.h" 40 40 #include "version.h" 41 41 42 static c har *release = STRING(RELEASE);43 static c har *name = STRING(NAME);44 static c har *arch = STRING(UARCH);42 static const char *release = STRING(RELEASE); 43 static const char *name = STRING(NAME); 44 static const char *arch = STRING(UARCH); 45 45 46 46 #ifdef REVISION 47 static c har *revision = ", revision " STRING(REVISION);47 static const char *revision = ", revision " STRING(REVISION); 48 48 #else 49 static c har *revision = "";49 static const char *revision = ""; 50 50 #endif 51 51 52 52 #ifdef TIMESTAMP 53 static c har *timestamp = "\nBuilt on " STRING(TIMESTAMP);53 static const char *timestamp = "\nBuilt on " STRING(TIMESTAMP); 54 54 #else 55 static c har *timestamp = "";55 static const char *timestamp = ""; 56 56 #endif 57 57 58 58 /** Print version information. */ 59 void version_print(const char * vc)59 void version_print(const char *term) 60 60 { 61 61 printf("HelenOS release %s (%s)%s%s\n", release, name, revision, timestamp); 62 printf("Running on %s (%s)\n", arch, vc);62 printf("Running on %s (%s)\n", arch, term); 63 63 printf("Copyright (c) 2001-2009 HelenOS project\n\n"); 64 64 }
Note:
See TracChangeset
for help on using the changeset viewer.
