| To: | Lachlan McIlroy <lachlan@xxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] Fix non-debug build for xfsidbg.c |
| From: | David Chinner <dgc@xxxxxxx> |
| Date: | Thu, 1 May 2008 10:49:25 +1000 |
| Cc: | David Chinner <dgc@xxxxxxx>, xfs-dev <xfs-dev@xxxxxxx>, xfs-oss <xfs@xxxxxxxxxxx> |
| In-reply-to: | <48181D04.4030902@xxxxxxx> |
| References: | <20080430065937.GC108924158@xxxxxxx> <48181D04.4030902@xxxxxxx> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.2.1i |
On Wed, Apr 30, 2008 at 05:17:24PM +1000, Lachlan McIlroy wrote:
> Dave, would the code look cleaner if iclog_bak was printed on a line by
> itself?
> That way we wouldn't need the #else and we wouldn't be duplicating code.
Yup, probably a good idea. I've changed it to match how this is handled
in other places in xfsidbg.c:
@@ -5846,8 +5846,12 @@
log->l_curr_cycle, log->l_prev_cycle, log->l_curr_block,
log->l_prev_block);
kdb_printf("iclog_bak: 0x%p iclog_size: 0x%x (%d) num iclogs: %d\n",
- log->l_iclog_bak, log->l_iclog_size, log->l_iclog_size,
- log->l_iclog_bufs);
+#ifdef DEBUG
+ log->l_iclog_bak,
+#else
+ NULL,
+#endif
+ log->l_iclog_size, log->l_iclog_size, log->l_iclog_bufs);
kdb_printf("l_iclog_hsize %d l_iclog_heads %d\n",
log->l_iclog_hsize, log->l_iclog_heads);
kdb_printf("l_sectbb_log %u l_sectbb_mask %u\n",
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Problems with xfs_grow on large LVM + XFS filesystem 20TB size check 2 failed, Eric Sandeen |
|---|---|
| Next by Date: | Re: [PATCH] Remove l_flushsema, David Chinner |
| Previous by Thread: | Re: [PATCH] Fix non-debug build for xfsidbg.c, Lachlan McIlroy |
| Next by Thread: | Re: [PATCH] Fix non-debug build for xfsidbg.c, Lachlan McIlroy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |