From b35fdf13c1d4a03061eaffa185dfce353087f594 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 8 Mar 2012 07:49:30 -0600 Subject: [PATCH] use printfv and printfnq --- scripts/testuser.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/testuser.php b/scripts/testuser.php index 8e70a5985f..028f58c0bb 100644 --- a/scripts/testuser.php +++ b/scripts/testuser.php @@ -58,6 +58,8 @@ function testAllUsers() { function testUser($filter, $user) { + printfnq("Testing user %s\n", $user->nickname); + $profile = $user->getProfile(); $str = new ProfileNoticeStream($profile, $profile); @@ -68,10 +70,10 @@ function testUser($filter, $user) { do { $notice = $str->getNotices($offset, $limit); while ($notice->fetch()) { - print "Testing notice " . $notice->id . "..."; + printfv("Testing notice %d...", $notice->id); $result = $filter->test($notice); Spam_score::save($notice, $result); - print (($result->isSpam) ? "SPAM" : "HAM")."\n"; + printfv("%s\n", ($result->isSpam) ? "SPAM" : "HAM"); } $offset += $notice->N; } while ($notice->N > 0);