Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.sbin/amd/libamu Pull up revision 1.2 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/31869d28efe1
branches:  netbsd-1-4
changeset: 471117:31869d28efe1
user:      he <he%NetBSD.org@localhost>
date:      Thu Oct 19 17:04:46 2000 +0000

description:
Pull up revision 1.2 (requested by he):
  Format string cleanup.

diffstat:

 usr.sbin/amd/libamu/mount_fs.c |  10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diffs (26 lines):

diff -r 9763ff234878 -r 31869d28efe1 usr.sbin/amd/libamu/mount_fs.c
--- a/usr.sbin/amd/libamu/mount_fs.c    Thu Oct 19 17:04:39 2000 +0000
+++ b/usr.sbin/amd/libamu/mount_fs.c    Thu Oct 19 17:04:46 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount_fs.c,v 1.1.1.6.2.1 1999/09/21 04:58:16 cgd Exp $ */
+/*     $NetBSD: mount_fs.c,v 1.1.1.6.2.2 2000/10/19 17:04:46 he Exp $  */
 
 /*
  * Copyright (c) 1997-1999 Erez Zadok
@@ -176,14 +176,10 @@
   char optsbuf[48];
 # endif /* defined(MNTTAB_OPT_DEV) || (defined(HAVE_FS_NFS3) && defined(MNTTAB_OPT_VERS)) || defined(MNTTAB_OPT_PROTO) */
 #endif /* MOUNT_TABLE_ON_FILE */
-#ifdef DEBUG
-  char buf[80];                        /* buffer for sprintf */
-#endif /* DEBUG */
 
 #ifdef DEBUG
-  sprintf(buf, "%s%s%s",
-         "%s fstype ", MTYPE_PRINTF_TYPE, " (%s) flags %#x (%s)");
-  dlog(buf, mnt->mnt_dir, type, mnt->mnt_type, flags, mnt->mnt_opts);
+  dlog("%s fstype " MTYPE_PRINTF_TYPE " (%s) flags %#x (%s)", 
+       mnt->mnt_dir, type, mnt->mnt_type, flags, mnt->mnt_opts);
 #endif /* DEBUG */
 
 again:



Home | Main Index | Thread Index | Old Index