Browse Source

Plan 9 from Bell Labs 2006-10-01

David du Colombier 14 years ago
parent
commit
5374c346af
4 changed files with 10 additions and 5 deletions
  1. 1 1
      dist/replica/_plan9.db
  2. 1 1
      dist/replica/plan9.db
  3. 2 0
      dist/replica/plan9.log
  4. 6 3
      sys/src/cmd/aux/cddb.c

+ 1 - 1
dist/replica/_plan9.db

@@ -9630,7 +9630,7 @@ sys/src/cmd/aux/antiword/xmalloc.c - 664 sys sys 1137261474 2501
 sys/src/cmd/aux/antiword/xml.c - 664 sys sys 1137261474 34115
 sys/src/cmd/aux/apm.c - 664 sys sys 1130423972 20275
 sys/src/cmd/aux/astarld.c - 664 sys sys 1015008684 4638
-sys/src/cmd/aux/cddb.c - 664 sys sys 1126795279 4610
+sys/src/cmd/aux/cddb.c - 664 sys sys 1159664477 4676
 sys/src/cmd/aux/clog.c - 664 sys sys 1014925109 1000
 sys/src/cmd/aux/consolefs.c - 664 sys sys 1150201588 21201
 sys/src/cmd/aux/conswdir.c - 664 sys sys 1045504955 2077

+ 1 - 1
dist/replica/plan9.db

@@ -9630,7 +9630,7 @@ sys/src/cmd/aux/antiword/xmalloc.c - 664 sys sys 1137261474 2501
 sys/src/cmd/aux/antiword/xml.c - 664 sys sys 1137261474 34115
 sys/src/cmd/aux/apm.c - 664 sys sys 1130423972 20275
 sys/src/cmd/aux/astarld.c - 664 sys sys 1015008684 4638
-sys/src/cmd/aux/cddb.c - 664 sys sys 1126795279 4610
+sys/src/cmd/aux/cddb.c - 664 sys sys 1159664477 4676
 sys/src/cmd/aux/clog.c - 664 sys sys 1014925109 1000
 sys/src/cmd/aux/consolefs.c - 664 sys sys 1150201588 21201
 sys/src/cmd/aux/conswdir.c - 664 sys sys 1045504955 2077

+ 2 - 0
dist/replica/plan9.log

@@ -30513,3 +30513,5 @@
 1159421406 14 c sys/man/8/tlssrv - 664 sys sys 1159419702 2590
 1159471806 0 c 386/bin/file - 775 sys sys 1159471186 125085
 1159551006 0 c sys/man/6/mhtml - 664 sys sys 1159550638 1714
+1159664406 0 c sys/src/cmd/aux/cddb.c - 664 sys sys 1159664098 4664
+1159666206 0 c sys/src/cmd/aux/cddb.c - 664 sys sys 1159664477 4676

+ 6 - 3
sys/src/cmd/aux/cddb.c

@@ -4,6 +4,7 @@
 #include <ctype.h>
 
 char *server = "freedb.freedb.org";
+
 int debug;
 #define DPRINT if(debug)fprint
 int tflag;
@@ -18,6 +19,7 @@ struct Track {
 enum {
 	MTRACK = 64,
 };
+
 typedef struct Toc Toc;
 struct Toc {
 	ulong diskid;
@@ -95,7 +97,7 @@ cddbfilltoc(Toc *t)
 
 	fd = dial(netmkaddr(server, "tcp", "888"), 0, 0, 0);
 	if(fd < 0) {
-		fprint(2, "cannot dial: %r\n");
+		fprint(2, "%s: %s: cannot dial: %r\n", argv0, server);
 		return -1;
 	}
 	Binit(&bin, fd, OREAD);
@@ -104,10 +106,11 @@ cddbfilltoc(Toc *t)
 	died:
 		close(fd);
 		Bterm(&bin);
-		fprint(2, "error talking to server\n");
+		fprint(2, "%s: error talking to cddb server %s\n",
+			argv0, server);
 		if(p) {
 			p[Blinelen(&bin)-1] = 0;
-			fprint(2, "server says: %s\n", p);
+			fprint(2, "%s: server says: %s\n", argv0, p);
 		}
 		return -1;
 	}