diff --git a/SUDiskImageUnarchiver.m b/SUDiskImageUnarchiver.m index 72029cb1..1ad7b276 100644 --- a/SUDiskImageUnarchiver.m +++ b/SUDiskImageUnarchiver.m @@ -80,7 +80,7 @@ if (taskResult != 0) { NSString* resultStr = output ? [[[NSString alloc] initWithData: output encoding: NSUTF8StringEncoding] autorelease] : nil; - SULog( @"hdiutil failed with code: %d data: <<%@>>", taskResult, resultStr ); + SULog( @"hdiutil failed with code: %ld data: <<%@>>", (long)taskResult, resultStr ); goto reportError; } mountedSuccessfully = YES; diff --git a/SULog.h b/SULog.h index 7631f95e..00ff2414 100644 --- a/SULog.h +++ b/SULog.h @@ -26,6 +26,6 @@ // ----------------------------------------------------------------------------- void SUClearLog( void ); -void SULog( NSString* format, ... ); +void SULog( NSString* format, ... ) NS_FORMAT_FUNCTION(1,2);