diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-30 02:13:39 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-30 02:13:39 +0800 |
commit | 6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c (patch) | |
tree | 8829f8b00e4343f8d8ea97606ce4e58ccb186034 /mbbsd/cache.c | |
parent | 4b2f5eeff9950ef1b7dd620d77efffc876aa76fa (diff) | |
download | pttbbs-6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c.tar pttbbs-6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c.tar.gz pttbbs-6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c.tar.bz2 pttbbs-6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c.tar.lz pttbbs-6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c.tar.xz pttbbs-6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c.tar.zst pttbbs-6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c.zip |
change log_file()
log_user()
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1889 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cache.c')
-rw-r--r-- | mbbsd/cache.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c index 8a43cfd6..f77bd2a7 100644 --- a/mbbsd/cache.c +++ b/mbbsd/cache.c @@ -471,13 +471,9 @@ setutmpmode(unsigned int mode) { if (currstat != mode) currutmp->mode = currstat = mode; - /* °lÂÜ¨Ï¥ÎªÌ */ if (HAS_PERM(PERM_LOGUSER)) { - char msg[200]; - snprintf(msg, sizeof(msg), "%s setutmpmode to %s(%d) at %s", - cuser.userid, modestring(currutmp, 0), mode, Cdate(&COMMON_TIME)); - log_user(msg); + log_user("setutmpmode to %s(%d)", modestring(currutmp, 0), mode); } } #endif @@ -628,7 +624,7 @@ setbottomtotal(int bid) n = get_num_records(genbuf, sizeof(fileheader_t)); if(n>5) { - log_file("fix_bottom", genbuf, 1); + log_file("fix_bottom", 1, "%s n:%d\n", genbuf, n); unlink(genbuf); SHM->n_bottom[bid-1]=0; } |