changed clog format from 'date: log' to 'sysname date: log' and added 'system' argument to clog to match the manual. Notes: Wed Sep 19 19:14:15 EDT 2007 geoff deferred. Reference: /n/sources/patch/saved/clog Date: Thu Aug 23 05:08:45 CES 2007 Signed-off-by: 9.nashi@gmail.com Reviewed-by: geoff --- /sys/src/cmd/aux/clog.c Thu Aug 23 05:07:17 2007 +++ /sys/src/cmd/aux/clog.c Thu Aug 23 05:07:13 2007 @@ -25,7 +25,7 @@ { Biobuf in; int fd; - char *p, *t; + char *p, *t, *s; char buf[8192]; argv0 = argv[0]; @@ -33,6 +33,10 @@ fprint(2, "usage: %s console logfile \n", argv0); exits("usage"); } + if(argc>3) + s=argv[3]; + else + s=sysname(); fd = open(argv[1], OREAD); if(fd < 0){ @@ -48,10 +52,10 @@ p[Blinelen(&in)-1] = 0; t = ctime(time(0)); t[19] = 0; - if(fprint(fd, "%s: %s\n", t, p) < 0){ + if(fprint(fd, "%s %s: %s\n", s, t, p) < 0){ close(fd); fd = openlog(argv[2]); - fprint(fd, "%s: %s\n", t, p); + fprint(fd, "%s %s: %s\n", s, t, p); } } else if(Blinelen(&in) == 0) // true eof break;