diff options
author | obrien <obrien@FreeBSD.org> | 2000-08-27 10:45:15 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-08-27 10:45:15 +0800 |
commit | c1c7b5494710403e71a6acb3dc9629fd1e2a3eb0 (patch) | |
tree | cb51532ab6f2b32e6702e60f4dee322ef72ad6e9 /net-im/icb/files/patch-ac | |
parent | 2db18664145c489eb214cd76e6b260f9aca020da (diff) | |
download | freebsd-ports-graphics-c1c7b5494710403e71a6acb3dc9629fd1e2a3eb0.tar.gz freebsd-ports-graphics-c1c7b5494710403e71a6acb3dc9629fd1e2a3eb0.tar.zst freebsd-ports-graphics-c1c7b5494710403e71a6acb3dc9629fd1e2a3eb0.zip |
Add the ability to prefix each line with a timestamp.
Obtained from: NetBSD
Diffstat (limited to 'net-im/icb/files/patch-ac')
-rw-r--r-- | net-im/icb/files/patch-ac | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net-im/icb/files/patch-ac b/net-im/icb/files/patch-ac index 65e5dadb70a..e58c70c4903 100644 --- a/net-im/icb/files/patch-ac +++ b/net-im/icb/files/patch-ac @@ -1,5 +1,5 @@ --- icb/c_log.c.orig Fri Feb 24 13:20:18 1995 -+++ icb/c_log.c Sat Aug 26 19:15:52 2000 ++++ icb/c_log.c Sat Aug 26 19:18:36 2000 @@ -6,6 +6,7 @@ #include "icb.h" #include "externs.h" @@ -19,17 +19,18 @@ /* determine pathname to use */ if (path == NULL || *path == '\0') -@@ -98,7 +101,8 @@ +@@ -97,8 +100,8 @@ + aptr++; /* timestamp it */ - sprintf(mbuf, "Session log \"%s\" started at %d/%02d/%-2d %s.", +- sprintf(mbuf, "Session log \"%s\" started at %d/%02d/%-2d %s.", - path, t->tm_mon+1, t->tm_mday, t->tm_year, aptr); + sprintf(mbuf, "Session log \"%s\" started at %d/%02d/%-4d %s.", + path, t->tm_mon+1, t->tm_mday, 1900+t->tm_year, aptr); putl(mbuf, PL_SCR | PL_LOG); return(0); -@@ -126,8 +130,8 @@ +@@ -126,8 +129,8 @@ aptr++; /* timestamp it */ |