diff --git a/AlarmTool.m b/AlarmTool.m index 25c4f07..5cc55db 100644 --- a/AlarmTool.m +++ b/AlarmTool.m @@ -99,7 +99,7 @@ main() str = [defs stringForKey: @"Cause"]; if (nil == str) { - NSLog(@"Missing Cause, try --help", str); + NSLog(@"Missing Cause, try --help"); exit(1); } cause = EcAlarmVersionMismatch; diff --git a/EcProcess.m b/EcProcess.m index 2d54f47..e718b34 100644 --- a/EcProcess.m +++ b/EcProcess.m @@ -2177,7 +2177,7 @@ NSLog(@"Ignored attempt to set timer interval to %g ... using 10.0", interval); if (YES == [cmdDefs boolForKey: @"Memory"]) { [self cmdDbg: cmdDetailDbg - msg: @"Memory usage %u", memRoll[memSlot]]; + msg: @"Memory usage %"PRIuPTR, memRoll[memSlot]]; } memSlot++; diff --git a/LogTool.m b/LogTool.m index 79eb754..83fecb9 100644 --- a/LogTool.m +++ b/LogTool.m @@ -53,8 +53,8 @@ main() NSString *name; NSString *mode; NSString *mesg; + NSString *date; id proxy; - NSCalendarDate *d; NSRange r; EcLogType eclt; CREATE_AUTORELEASE_POOL(arp); @@ -127,11 +127,11 @@ main() exit(1); } - d = [[NSCalendarDate date] descriptionWithCalendarFormat: + date = [[NSCalendarDate date] descriptionWithCalendarFormat: @"%Y-%m-%d %H:%M:%S %z" locale: [defs dictionaryRepresentation]]; mesg = [NSString stringWithFormat: @"%@(%@): %@ %@ - %@\n", - name, [[NSHost currentHost] name], d, mode, mesg]; + name, [[NSHost currentHost] name], date, mode, mesg]; /* * A last check to remove any embedded newlines.