[Sysfence-commit] sysfence getstats.c,1.13,1.14
Status: Alpha
Brought to you by:
emes
|
From: Michal S. <em...@us...> - 2004-05-29 12:55:20
|
Update of /cvsroot/sysfence/sysfence In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27993 Modified Files: getstats.c Log Message: + debug info Index: getstats.c =================================================================== RCS file: /cvsroot/sysfence/sysfence/getstats.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- getstats.c 28 May 2004 23:27:32 -0000 1.13 +++ getstats.c 29 May 2004 12:55:09 -0000 1.14 @@ -37,7 +37,14 @@ sf_res_state slctr = def->arg[0].resstat; #ifdef DEBUG - syslog (LOG_DEBUG, "get_stat_fs(): fslist @ %x", fslist); + syslog (LOG_DEBUG, + "get_stat_fs(%s): total = %ld, used = %ld, free = %ld, avail = %ld", + def->arg[1].path, + fs->val[VA_TOTAL], + fs->val[VA_USED], + fs->val[VA_FREE], + fs->val[VA_AVAIL] + ); #endif res.type = INTEGER; @@ -201,7 +208,8 @@ fs->val[VA_USED] = (buf.f_blocks - buf.f_bfree) * bsizeKB; #ifdef DEBUG - printf ("fetch_pathspace(): path %s total=%d used=%d free=%d available=%d\n", + syslog (LOG_DEBUG, + "fetch_pathspace(): path %s total=%d used=%d free=%d available=%d\n", fs->path, fs->val[VA_TOTAL], fs->val[VA_USED], |