bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#20778: Flush left indentation in c-mode


From: Bruce Korb
Subject: bug#20778: Flush left indentation in c-mode
Date: Tue, 09 Jun 2015 09:49:15 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0


With the patched cc-mode, I ran into this situation again.
It seems to think that the flush-left alignment of the "if" statement is fine.
The rest of the code indents as you see here.  Reloading cc-mode does no
good, it leaves the statement flush left.  Closing and re-visiting the file
cleans up the confusion and re-indents correctly.

I do not know what you can do about it without better information from me,
but I don't know what to tell you either.  :(  Oh, the "c-file-style" is 
"linux".

void ftl_ns_print(void)
{
#if MAX_EVENT_EVT_PRIORITY >= LOG_DEBUG
        int skip_ct = 0;

        for (int i = 0; i < s_ns_table.nst_count; i++) {
                struct ftl_ns_t * const ns_p = &s_ns_table.nst_ns_list[i];

                if (ns_p->active_ns_id == NS_ID_NULL) {
                        skip_ct++;
                        continue;
                }

                EMIT_PRINT_NS_EVENT(
                        debug, "ns_id=%d, flags=%u, active_ns_id=%d, 
parent_ns_id=%d, next_snapshot_ns_id=%d, "
                        "snapshot_sn=%u, size_byte=%lu, used_bytes=%lu, 
physical_used_bytes=%lu, max_lpn=%lu, "
                        "creation_io_id=%lu, snapshot_sn_seq=%u\n",
                        sint32, ns_p->ns_id,
                        uint32, ns_p->flags,
                        sint32, ns_p->active_ns_id,
                        sint32, ns_p->parent_ns_id,
                        sint32, ns_p->next_snapshot_ns_id,
                        uint32, ns_p->snapshot_sn,
                        uint64, ns_p->size_bytes,
                        uint64, ns_p->used_bytes,
                        uint64, ns_p->physical_used_bytes,
                        uint64, ns_p->max_lpn,
                        uint64, ns_p->creation_io_id,
                        uint32, ns_p->snapshot_sn_seq
                        );
        }

if (skip_ct > 0)
        EMIT_SKIPPED_NS_EVENT(debug, "skipped %d empty name spaces", sint32, 
skip_ct);
#endif
}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]