From: Robert Spalek Date: Fri, 22 Jun 2007 01:39:27 +0000 (-0700) Subject: lib: convert log->msg in Darwin-#ifdef'ed code X-Git-Tag: holmes-import~506^2~66 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=a3260d36824b74f58edb13748ccf765f23a3eb05;p=libucw.git lib: convert log->msg in Darwin-#ifdef'ed code --- diff --git a/lib/qache.c b/lib/qache.c index 095925df..854a12df 100644 --- a/lib/qache.c +++ b/lib/qache.c @@ -86,7 +86,7 @@ qache_msync(struct qache *q UNUSED, uns start UNUSED, uns len UNUSED) start -= start % CPU_PAGE_SIZE; len = ALIGN_TO(len, CPU_PAGE_SIZE); if (msync(q->mmap_data + start, len, MS_ASYNC | MS_INVALIDATE) < 0) - log(L_ERROR, "Cache %s: msync failed: %m", q->file_name); + msg(L_ERROR, "Cache %s: msync failed: %m", q->file_name); #endif } @@ -777,7 +777,7 @@ int main(int argc UNUSED, char **argv UNUSED) found++; } } - log(L_INFO, "Found %d of %d entries", found, N); + msg(L_INFO, "Found %d of %d entries", found, N); qache_close(q, 1); return 0;