[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 07/30: ext2fs: improve ext2fs debugging
From: |
Samuel Thibault |
Subject: |
[hurd] 07/30: ext2fs: improve ext2fs debugging |
Date: |
Tue, 22 Sep 2015 21:51:58 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 72758b677ad240fd80b769e92f85c639860e6b97
Author: Justus Winter <address@hidden>
Date: Wed Aug 12 16:13:07 2015 +0200
ext2fs: improve ext2fs debugging
* ext2fs/ext2fs.h (ext2_debug): Print to stderr.
(printf): Drop declaration.
---
ext2fs/ext2fs.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/ext2fs/ext2fs.h b/ext2fs/ext2fs.h
index 96d8e9d..0009af0 100644
--- a/ext2fs/ext2fs.h
+++ b/ext2fs/ext2fs.h
@@ -50,9 +50,10 @@ typedef int8_t __s8;
#undef ext2_debug
#ifdef EXT2FS_DEBUG
+#include <stdio.h>
extern int ext2_debug_flag;
#define ext2_debug(f, a...) \
- do { if (ext2_debug_flag) printf ("ext2fs: (debug) %s: " f "\n", __FUNCTION__
, ## a); } while (0)
+ do { if (ext2_debug_flag) fprintf (stderr, "ext2fs: (debug) %s: " f "\n",
__FUNCTION__ , ## a); } while (0)
#else
#define ext2_debug(f, a...) (void)0
#endif
@@ -65,8 +66,6 @@ extern int ext2_debug_flag;
#undef DONT_CACHE_MEMORY_OBJECTS
-int printf (const char *fmt, ...);
-
/* A block number. */
typedef __u32 block_t;
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (3dc2076 -> 3f883d3), Samuel Thibault, 2015/09/22
- [hurd] 03/30: pflocal: fix receiver lookup, Samuel Thibault, 2015/09/22
- [hurd] 04/30: libports: clarify why we emulate protected payloads, Samuel Thibault, 2015/09/22
- [hurd] 06/30: Fake full file access only for faked nodes, Samuel Thibault, 2015/09/22
- [hurd] 05/30: Make fakeroot return file types from underly fs, Samuel Thibault, 2015/09/22
- [hurd] 07/30: ext2fs: improve ext2fs debugging,
Samuel Thibault <=
- [hurd] 10/30: libdiskfs: fix typo, Samuel Thibault, 2015/09/22
- [hurd] 02/30: Print which path init tried to execv, Samuel Thibault, 2015/09/22
- [hurd] 11/30: libdiskfs: add missing declarations, Samuel Thibault, 2015/09/22
- [hurd] 08/30: ext2fs: provide unconditional debug macro, Samuel Thibault, 2015/09/22
- [hurd] 16/30: Make procfs accept none or proc as "device", Samuel Thibault, 2015/09/22
- [hurd] 15/30: Fix opening a fifo with O_RDWR, Samuel Thibault, 2015/09/22
- [hurd] 09/30: libdiskfs: fix parent lookup in the name cache, Samuel Thibault, 2015/09/22
- [hurd] 17/30: Also do not realpath "proc" pseudo-device, Samuel Thibault, 2015/09/22
- [hurd] 13/30: Fix build against glibc 2.21, Samuel Thibault, 2015/09/22
- [hurd] 18/30: umount: Do not report errors on making the device go away, Samuel Thibault, 2015/09/22