diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-20 01:03:23 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-20 01:03:23 +0800 |
commit | 5a1828b34592469b5bf7fe9f46c7fe69bbd30cba (patch) | |
tree | e2a73a3cccb95429b2c082db2b8d8f176ad4d368 /daemon | |
parent | b13871ed65b9be572388237109747f567b1f04a2 (diff) | |
download | pttbbs-5a1828b34592469b5bf7fe9f46c7fe69bbd30cba.tar pttbbs-5a1828b34592469b5bf7fe9f46c7fe69bbd30cba.tar.gz pttbbs-5a1828b34592469b5bf7fe9f46c7fe69bbd30cba.tar.bz2 pttbbs-5a1828b34592469b5bf7fe9f46c7fe69bbd30cba.tar.lz pttbbs-5a1828b34592469b5bf7fe9f46c7fe69bbd30cba.tar.xz pttbbs-5a1828b34592469b5bf7fe9f46c7fe69bbd30cba.tar.zst pttbbs-5a1828b34592469b5bf7fe9f46c7fe69bbd30cba.zip |
* refine log format
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4679 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/regmaild/regmaild.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/daemon/regmaild/regmaild.c b/daemon/regmaild/regmaild.c index a56a3bb9..bd980b77 100644 --- a/daemon/regmaild/regmaild.c +++ b/daemon/regmaild/regmaild.c @@ -190,7 +190,8 @@ client_cb(int fd, short event, void *arg) { case REGMAILDB_REQ_COUNT: ret = regmaildb_check_email(req.email, strlen(req.email), req.userid); - fprintf(stderr, "%s check mail[%s]: ret=%d\r\n", req.userid, req.email, ret); + fprintf(stderr, "%-*s check mail (result: %d): [%s]\r\n", + IDLEN, req.userid, ret, req.email); if (towrite(fd, &ret, sizeof(ret)) != sizeof(ret)) { fprintf(stderr, " error: cannot write response...\r\n"); @@ -200,7 +201,8 @@ client_cb(int fd, short event, void *arg) case REGMAILDB_REQ_SET: ret = regmaildb_update_email(req.userid, strlen(req.userid), req.email, strlen(req.email)); - fprintf(stderr, "%s update mail to [%s]: ret=%d\r\n", req.userid, req.email, ret); + fprintf(stderr, "%-*s UPDATE mail (result: %d): [%s]\r\n", + IDLEN, req.userid, ret, req.email); if (towrite(fd, &ret, sizeof(ret)) != sizeof(ret)) { fprintf(stderr, " error: cannot write response...\r\n"); |