? cpukit/libcsupport/src/printk.c-AVR
Index: c/src/libchip/i2c/spi-sd-card.c
===================================================================
RCS file: /usr1/CVS/rtems/c/src/libchip/i2c/spi-sd-card.c,v
retrieving revision 1.10
diff -u -r1.10 spi-sd-card.c
--- c/src/libchip/i2c/spi-sd-card.c	27 Feb 2009 11:10:46 -0000	1.10
+++ c/src/libchip/i2c/spi-sd-card.c	11 Jun 2009 18:41:32 -0000
@@ -1130,14 +1130,14 @@
 			case RTEMS_BLKDEV_REQ_WRITE:
 				return sd_card_disk_block_write( e, r);
 			default:
-				errno = EBADRQC;
+                                errno = EINVAL; /* EBADRQC; */
 				return -1;
 		}
 	} else if (req == RTEMS_BLKDEV_CAPABILITIES) {
 		*(uint32_t *) arg = RTEMS_BLKDEV_CAP_MULTISECTOR_CONT;
 		return 0;
 	} else {
-		errno = EBADRQC;
+                errno = EINVAL; /* EBADRQC; */
 		return -1;
 	}
 }
Index: c/src/libchip/ide/ata.c
===================================================================
RCS file: /usr1/CVS/rtems/c/src/libchip/ide/ata.c,v
retrieving revision 1.24
diff -u -r1.24 ata.c
--- c/src/libchip/ide/ata.c	30 May 2009 04:48:30 -0000	1.24
+++ c/src/libchip/ide/ata.c	11 Jun 2009 18:41:32 -0000
@@ -1053,7 +1053,7 @@
             break;
 
         default:
-            errno = EBADRQC;
+            errno = EINVAL; /* EBADRQC; */
             return -1;
             break;
     }
Index: cpukit/libblock/src/flashdisk.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libblock/src/flashdisk.c,v
retrieving revision 1.7
diff -u -r1.7 flashdisk.c
--- cpukit/libblock/src/flashdisk.c	2 Jan 2009 12:43:07 -0000	1.7
+++ cpukit/libblock/src/flashdisk.c	11 Jun 2009 18:41:32 -0000
@@ -2378,7 +2378,7 @@
               break;
         
             default:
-              errno = EBADRQC;
+              errno = EINVAL; /* EBADRQC; */
               break;
           }
         }
@@ -2410,7 +2410,7 @@
         break;
 
       default:
-        errno = EBADRQC;
+        errno = EINVAL; /* EBADRQC; */
         break;
     }
 
Index: cpukit/libblock/src/nvdisk.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libblock/src/nvdisk.c,v
retrieving revision 1.6
diff -u -r1.6 nvdisk.c
--- cpukit/libblock/src/nvdisk.c	2 Jan 2009 12:43:07 -0000	1.6
+++ cpukit/libblock/src/nvdisk.c	11 Jun 2009 18:41:32 -0000
@@ -730,7 +730,7 @@
             break;
             
           default:
-            errno = EBADRQC;
+            errno = EINVAL; /* EBADRQC; */
             break;
         }
         break;
@@ -744,7 +744,7 @@
         break;
         
       default:
-        errno = EBADRQC;
+        errno = EINVAL; /* EBADRQC; */
         break;
     }
 
Index: cpukit/libblock/src/ramdisk.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libblock/src/ramdisk.c,v
retrieving revision 1.18
diff -u -r1.18 ramdisk.c
--- cpukit/libblock/src/ramdisk.c	15 May 2009 12:52:12 -0000	1.18
+++ cpukit/libblock/src/ramdisk.c	11 Jun 2009 18:41:32 -0000
@@ -201,14 +201,14 @@
                     return ramdisk_write(rd, r);
 
                 default:
-                    errno = EBADRQC;
+                    errno = EINVAL; /* EBADRQC; */
                     return -1;
             }
             break;
         }
 
         default:
-            errno = EBADRQC;
+            errno = EINVAL; /* EBADRQC; */
             return -1;
     }
 }
Index: cpukit/libfs/src/dosfs/fat.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libfs/src/dosfs/fat.c,v
retrieving revision 1.14
diff -u -r1.14 fat.c
--- cpukit/libfs/src/dosfs/fat.c	4 Sep 2008 08:33:05 -0000	1.14
+++ cpukit/libfs/src/dosfs/fat.c	11 Jun 2009 18:41:32 -0000
@@ -351,12 +351,12 @@
 
     /* rtmes feature: no block devices, all are character devices */
     if (!S_ISCHR(stat_buf.st_mode))
-        rtems_set_errno_and_return_minus_one(ENOTBLK);
+        rtems_set_errno_and_return_minus_one(EINVAL); /* (ENOTBLK); */
 
     /* check that device is registred as block device and lock it */
     vol->dd = rtems_disk_obtain(stat_buf.st_dev);
     if (vol->dd == NULL)
-        rtems_set_errno_and_return_minus_one(ENOTBLK);
+        rtems_set_errno_and_return_minus_one(EINVAL); /* (ENOTBLK); */
 
     vol->dev = stat_buf.st_dev;
 
Index: cpukit/libfs/src/dosfs/msdos_format.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libfs/src/dosfs/msdos_format.c,v
retrieving revision 1.8
diff -u -r1.8 msdos_format.c
--- cpukit/libfs/src/dosfs/msdos_format.c	5 May 2009 12:57:34 -0000	1.8
+++ cpukit/libfs/src/dosfs/msdos_format.c	11 Jun 2009 18:41:32 -0000
@@ -910,7 +910,7 @@
   /* rtems feature: no block devices, all are character devices */   
   if ((ret_val == 0) &&
       (!S_ISCHR(stat_buf.st_mode))) {
-    errno = ENOTBLK;
+    errno = EINVAL; /* ENOTBLK; */
     ret_val = -1;
   }
   
@@ -918,7 +918,7 @@
   if (ret_val == 0) {
     dd = rtems_disk_obtain(stat_buf.st_dev);
     if (dd == NULL) {
-      errno = ENOTBLK;
+      errno = EINVAL; /* ENOTBLK; */
       ret_val = -1;
     }
   }
