Browse Source

Plan 9 from Bell Labs 2004-06-05

David du Colombier 20 years ago
parent
commit
584ff0793e

+ 1 - 1
sys/src/9/ip/nullmedium.c

@@ -10,7 +10,7 @@
 static void
 nullbind(Ipifc*, int, char**)
 {
-	error("can't bind null device");
+	error("cannot bind null device");
 }
 
 static void

+ 2 - 2
sys/src/9/pc/devi82365.c

@@ -730,7 +730,7 @@ pcmread(int slotno, int attr, void *a, long n, vlong off)
 	for(len = n; len > 0; len -= i){
 		m = pcmmap(pp->slotno, offset, 0, attr);
 		if(m == 0)
-			error("can't map PCMCIA card");
+			error("cannot map PCMCIA card");
 		if(offset + len > m->cea)
 			i = m->cea - offset;
 		else
@@ -816,7 +816,7 @@ pcmwrite(int dev, int attr, void *a, long n, vlong off)
 	for(len = n; len > 0; len -= i){
 		m = pcmmap(pp->slotno, offset, 0, attr);
 		if(m == 0)
-			error("can't map PCMCIA card");
+			error("cannot map PCMCIA card");
 		if(offset + len > m->cea)
 			i = m->cea - offset;
 		else

+ 2 - 2
sys/src/9/pc/usbuhci.c

@@ -801,9 +801,9 @@ epopen(Usbhost *uh, Endpt *e)
 		error("already open");
 	if(schedendpt(ctlr, e) < 0){
 		if(e->active)
-			error("can't schedule USB endpoint, active");
+			error("cannot schedule USB endpoint, active");
 		else
-			error("can't schedule USB endpoint");
+			error("cannot schedule USB endpoint");
 	}
 	eptactivate(ctlr, e);
 }

+ 4 - 4
sys/src/9/port/devdraw.c

@@ -1424,7 +1424,7 @@ drawmesg(Client *client, void *av, int n)
 			if(ddst == nil)
 				error(Enodrawimage);
 			if(ddst->name)
-				error("can't change repl/clipr of shared image");
+				error("cannot change repl/clipr of shared image");
 			dst = ddst->image;
 			if(a[5])
 				dst->flags |= Frepl;
@@ -1523,12 +1523,12 @@ drawmesg(Client *client, void *av, int n)
 				error(Eshortdraw);
 			dstid = BGLONG(a+1);
 			if(dstid == 0)
-				error("can't use display as font");
+				error("cannot use display as font");
 			font = drawlookup(client, dstid, 1);
 			if(font == 0)
 				error(Enodrawimage);
 			if(font->image->layer)
-				error("can't use window as font");
+				error("cannot use window as font");
 			ni = BGLONG(a+5);
 			if(ni<=0 || ni>4096)
 				error("bad font size (4096 chars max)");
@@ -1629,7 +1629,7 @@ drawmesg(Client *client, void *av, int n)
 				error(Edrawmem);
 			di = drawlookup(client, dstid, 0);
 			if(di == 0)
-				error("draw: can't happen");
+				error("draw: cannot happen");
 			di->vers = dn->vers;
 			di->name = smalloc(j+1);
 			di->fromname = dn->dimage;

+ 1 - 1
sys/src/9/port/devmnt.c

@@ -1159,7 +1159,7 @@ mntchk(Chan *c)
 		print("mntchk 2: nil mux c %s c->mchan %s \n", channame(c), channame(c->mchan));
 
 	/*
-	 * Was it closed and reused (was error(Eshutdown); now, it can't happen)
+	 * Was it closed and reused (was error(Eshutdown); now, it cannot happen)
 	 */
 	if(m->id == 0 || m->id >= c->dev)
 		panic("mntchk 3: can't happen");

+ 1 - 1
sys/src/9/port/devsrv.c

@@ -299,7 +299,7 @@ srvwrite(Chan *c, void *va, long n, vlong)
 	if(c1->flag & (CCEXEC|CRCLOSE))
 		error("posted fd has remove-on-close or close-on-exec");
 	if(c1->qid.type & QTAUTH)
-		error("can't post auth file in srv");
+		error("cannot post auth file in srv");
 	sp = srvlookup(nil, c->qid.path);
 	if(sp == 0)
 		error(Enonexist);

+ 3 - 3
sys/src/9/port/devtls.c

@@ -468,7 +468,7 @@ tlsopen(Chan *c, int omode)
 				error(Einuse);
 			tr->handq = qopen(2 * MaxCipherRecLen, 0, nil, nil);
 			if(tr->handq == nil)
-				error("can't allocate handshake queue");
+				error("cannot allocate handshake queue");
 			tr->hqref = 1;
 			unlock(&tr->hqlock);
 			poperror();
@@ -1620,7 +1620,7 @@ tlswrite(Chan *c, void *a, long n, vlong off)
 		if(cb->nf != 1)
 			error("usage: changecipher");
 		if(tr->out.new == nil)
-			error("can't change cipher spec without setting secret");
+			error("cannot change cipher spec without setting secret");
 
 		qunlock(&tr->in.seclock);
 		qunlock(&tr->out.seclock);
@@ -1644,7 +1644,7 @@ tlswrite(Chan *c, void *a, long n, vlong off)
 		lock(&tr->statelk);
 		if(tr->state != SHandshake && tr->state != SOpen){
 			unlock(&tr->statelk);
-			error("can't enable data messages");
+			error("cannot enable data messages");
 		}
 		tr->state = SOpen;
 		unlock(&tr->statelk);