diff --git a/src/lisp/Darwin-os.c b/src/lisp/Darwin-os.c
index 1304d1042f805626560ac8fca3d714ed574ef520..9cd0aa6fcfc05dd89a3386befff23a2239f495b6 100644
--- a/src/lisp/Darwin-os.c
+++ b/src/lisp/Darwin-os.c
@@ -499,7 +499,7 @@ sigbus_handler(HANDLER_ARGS)
 
     /* a *real* protection fault */
     fprintf(stderr, "sigbus_handler: Real protection violation at %p, PC = %p\n",
-            fault_addr, SC_PC(context));
+            fault_addr, (void *) SC_PC(context));
     sigbus_handle_now(signal, code, context);
 #ifdef __ppc__
     /* Work around G5 bug; fix courtesy gbyers via chandler */
diff --git a/src/lisp/coreparse.c b/src/lisp/coreparse.c
index cf1ee43eee4d2c18d95d73d6ea5f6236a7c9729e..bdba5002bde5f9aa91684801fbde8be1ab7ba80c 100644
--- a/src/lisp/coreparse.c
+++ b/src/lisp/coreparse.c
@@ -63,7 +63,7 @@ process_directory(int fd, long *ptr, int count)
 	  case STATIC_SPACE_ID:
 	      static_space = (lispobj *) addr;
               if (len >= static_space_size) {
-                  fprintf(stderr, "Error:  Static space size (%d) exceeds allocated space (%d)!\n",
+                  fprintf(stderr, "Error:  Static space size (%ld) exceeds allocated space (%ld)!\n",
                           len, static_space_size);
                   exit(1);
               }
@@ -71,7 +71,7 @@ process_directory(int fd, long *ptr, int count)
 	  case READ_ONLY_SPACE_ID:
 	      /* Don't care about read only space */
               if (len >= read_only_space_size) {
-                  fprintf(stderr, "Error:  Read only space size (%d) exceeds allocated space (%d)!\n",
+                  fprintf(stderr, "Error:  Read only space size (%ld) exceeds allocated space (%lu)!\n",
                           len, read_only_space_size);
                   exit(1);
               }