Use readstr() for #device text buffers
[akaros.git] / kern / drivers / dev / kfs.c
index b701a1d..aedf7a9 100644 (file)
@@ -224,8 +224,8 @@ static int add_kfs_entry(struct cpio_bin_hdr *c_bhdr, void *cb_arg)
                break;
        default:
                cclose(c);
                break;
        default:
                cclose(c);
-               printk("Unknown file type %d in the CPIO!",
-                      c_bhdr->c_mode & CPIO_FILE_MASK);
+               warn("Unknown file type %d in the CPIO!",
+                    c_bhdr->c_mode & CPIO_FILE_MASK);
                return -1;
        }
        if (!c)
                return -1;
        }
        if (!c)
@@ -310,7 +310,7 @@ static unsigned long kfs_chan_ctl(struct chan *c, int op, unsigned long a1,
        case CCTL_SYNC:
                return 0;
        default:
        case CCTL_SYNC:
                return 0;
        default:
-               error(EINVAL, "%s does not support %d", __func__, op);
+               return tree_chan_ctl(c, op, a1, a2, a3, a4);
        }
 }
 
        }
 }