Changeset 1377 in MondoRescue for branches/stable/mondo/src
- Timestamp:
- Apr 30, 2007, 11:25:39 AM (18 years ago)
- Location:
- branches/stable/mondo/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-tools.c
r1373 r1377 23 23 #include <netinet/in.h> 24 24 #include <arpa/inet.h> 25 #include <sys/utsname.h> 25 26 26 27 /*@unused@*/ … … 192 193 193 194 194 char *get_architecture(void) 195 { 195 char *get_architecture(void) { 196 196 #ifdef __IA32__ 197 return ("i386"); 197 # ifdef __X86_64__ 198 return ("x86_64"); 199 # else 200 return ("i386"); 201 # endif 198 202 #endif 199 203 #ifdef __X86_64__ … … 205 209 return ("unknown"); 206 210 } 211 212 213 char *get_uname_m(void) { 214 215 struct utsname utsn; 216 char *tmp = NULL; 217 218 uname(&utsn); 219 mr_asprintf(&tmp, utsn.machine); 220 return (tmp); 221 } 222 207 223 208 224 -
branches/stable/mondo/src/common/libmondo-tools.h
r1183 r1377 45 45 double get_kernel_version(void); 46 46 char *get_architecture(void); 47 char *get_uname_m(); 47 48 bool does_nonMS_partition_exist(void); 48 49 void stop_magicdev_if_necessary(void); -
branches/stable/mondo/src/mondoarchive/mondoarchive.c
r1326 r1377 66 66 static void welcome_to_mondoarchive(void) 67 67 { 68 char *tmp = NULL; 69 68 70 mr_msg(0, "Mondo Archive v%s --- http://www.mondorescue.org", PACKAGE_VERSION); 69 mr_msg(0, "running on %s architecture", get_architecture()); 71 log_msg(0, "running %s binaries", get_architecture()); 72 tmp = get_uname_m(); 73 log_msg(0, "running on %s architecture", tmp); 74 mr_free(tmp); 70 75 mr_msg(0, "-----------------------------------------------------------"); 71 76 mr_msg(0, "NB: Mondo logs almost everything, so don't panic if you see");
Note:
See TracChangeset
for help on using the changeset viewer.