[Sysfence-commit] sysfence/sys log.c,1.1,1.2
Status: Alpha
Brought to you by:
emes
|
From: Michal S. <em...@us...> - 2004-05-28 23:25:30
|
Update of /cvsroot/sysfence/sysfence/sys In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11130/sys Modified Files: log.c Log Message: * fixes Index: log.c =================================================================== RCS file: /cvsroot/sysfence/sysfence/sys/log.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- log.c 26 May 2004 17:30:42 -0000 1.1 +++ log.c 28 May 2004 23:25:18 -0000 1.2 @@ -37,7 +37,7 @@ thisbuf = (char *) xalloc (NULL, STRBUF + 1); defbuf = def_2_string ((sf_stat_def *) hd->el); #ifdef DEBUG - val = get_stat_value ((sf_stat_def *) hd->el, "stats_2_string()"); + val = get_stat_value ((sf_stat_def *) hd->el); #else val = get_stat_value ((sf_stat_def *) hd->el); #endif @@ -55,7 +55,7 @@ switch (val.type) { case INTEGER: - snprintf (thisbuf, STRBUF, "%s = %d", defbuf, *((long int *) val.ptr)); + snprintf (thisbuf, STRBUF, "%s = %ld", defbuf, *((long int *) val.ptr)); break; case DOUBLE: snprintf (thisbuf, STRBUF, "%s = %.2f", defbuf, *((double *) val.ptr)); |