From b2865e29465142b16ad5a1dd851c58aa0485eea2 Mon Sep 17 00:00:00 2001 From: hjp Date: Sun, 4 Jun 2000 16:19:00 +0000 Subject: [PATCH] Fixed order of args in fprintf (segfault). --- ddm/ddm.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ddm/ddm.c b/ddm/ddm.c index d9ea8d9..82de284 100644 --- a/ddm/ddm.c +++ b/ddm/ddm.c @@ -1,5 +1,5 @@ char ddm_c_rcs_id[] = - "$Id: ddm.c,v 1.2 2000-06-04 16:11:12 hjp Exp $"; + "$Id: ddm.c,v 1.3 2000-06-04 16:19:00 hjp Exp $"; /* * ddm - disk delay monitor * @@ -44,7 +44,7 @@ int main(int argc, char**argv) { /* Get list of directories */ ts = gettimestamp(); - fprintf(stderr, "%s: %.6f: open %s\n", argv[0], MNTTAB, ts); + fprintf(stderr, "%s: %.6f: open %s\n", argv[0], ts, MNTTAB); if ((mtp = setmntent(MNTTAB, "r")) == NULL) { fprintf(stderr, "%s: cannot open %s: %s\n", argv[0], MNTTAB, strerror(errno)); @@ -115,7 +115,10 @@ int main(int argc, char**argv) { /* * $Log: ddm.c,v $ - * Revision 1.2 2000-06-04 16:11:12 hjp + * Revision 1.3 2000-06-04 16:19:00 hjp + * Fixed order of args in fprintf (segfault). + * + * Revision 1.2 2000/06/04 16:11:12 hjp * Added autodetection of /etc/m(nt)?tab. * * Revision 1.1 2000/06/04 15:53:19 hjp