@@ -928,7 +928,7 @@ - (BOOL)startDaemon {
928928
929929 if ( errAuthorizationSuccess != result ) {
930930 [ textTabletInfo setStringValue: [ thePane localizedString: kDriverNotLoaded ] ];
931- NSLog (@" Failed to start the daemon: %d " , result);
931+ NSLog (@" Failed to start the daemon: %ld " , result);
932932 }
933933 }
934934
@@ -985,7 +985,7 @@ - (BOOL)killDaemon {
985985 if (args[i]) free (args[i]);
986986
987987 if ( errAuthorizationSuccess != result )
988- NSLog (@" Failed to kill the daemon: %d " , result);
988+ NSLog (@" Failed to kill the daemon: %ld " , result);
989989
990990 if (file) fclose (file);
991991 }
@@ -1007,7 +1007,7 @@ - (void)setupAuthorization {
10071007
10081008 result = AuthorizationCreate (nil , kAuthorizationEmptyEnvironment , kAuthorizationFlagDefaults , &fAuthorization);
10091009 if (result != errAuthorizationSuccess) {
1010- NSLog (@" Failed to create an authorization record: %d " , result);
1010+ NSLog (@" Failed to create an authorization record: %ld " , result);
10111011 fAuthorization = nil ;
10121012 }
10131013}
@@ -1018,7 +1018,7 @@ - (void)cleanUpAuthorization {
10181018 result = AuthorizationFree (fAuthorization, kAuthorizationFlagDestroyRights );
10191019
10201020 if ( result != errAuthorizationSuccess )
1021- NSLog (@" Failed to free the authorization record: %d " , result);
1021+ NSLog (@" Failed to free the authorization record: %ld " , result);
10221022}
10231023
10241024//
@@ -1308,7 +1308,7 @@ - (NSString*)settingsStringFromControls {
13081308 // Tilt checkbox
13091309 if (NSOnState == [ checkTilt state ]) bits |= 0x00000010 ;
13101310
1311- return [ NSString stringWithFormat: @" %08X ,%03d ,%02d ,%04d ,%04d " ,
1311+ return [ NSString stringWithFormat: @" %08lX ,%03d ,%02d ,%04d ,%04d " ,
13121312 bits,
13131313 [ editIncrement intValue ],
13141314 [ editInterval intValue ],
@@ -1742,7 +1742,7 @@ - (char*)runLaunchHelper:(NSString*)argsString {
17421742// NSLog(@"The Helper said: %s (%d)", outputBuffer, strlen(outputBuffer));
17431743
17441744 if ( errAuthorizationSuccess != result )
1745- NSLog (@" Failed to run the Launch Helper: %d " , result);
1745+ NSLog (@" Failed to run the Launch Helper: %ld " , result);
17461746
17471747 return outputBuffer;
17481748}
0 commit comments