1.35a psp bugfix release
[picodrive.git] / Pico / Cart.c
index fc7eec3..eeb5964 100644 (file)
@@ -257,7 +257,7 @@ int PicoCartLoad(pm_file *f,unsigned char **prom,unsigned int *psize)
   // Allocate space for the rom plus padding\r
   rom=PicoCartAlloc(size);\r
   if (rom==NULL) {\r
-    printf("out of memory (wanted %i)\n", size);\r
+    elprintf(EL_STATUS, "out of memory (wanted %i)", size);\r
     return 1;\r
   }\r
 \r
@@ -281,7 +281,7 @@ int PicoCartLoad(pm_file *f,unsigned char **prom,unsigned int *psize)
   else\r
     bytes_read = pm_read(rom,size,f); // Load up the rom\r
   if (bytes_read <= 0) {\r
-    printf("read failed\n");\r
+    elprintf(EL_STATUS, "read failed");\r
     free(rom);\r
     return 1;\r
   }\r