[Swan-commit] Changes to ref refs/heads/master

Andrew Cagney cagney at vault.libreswan.fi
Tue Apr 21 14:47:27 UTC 2020


New commits:
commit 4da2008cef9c29f543f6e5cda6ea34e927802821
Merge: 751559a 7d9900d
Author: Andrew Cagney <cagney at gnu.org>
Date:   Tue Apr 21 10:36:39 2020 -0400

    logging: really fix double blank lines in --show* output
    
    (hopefully)
    
    Changes:
       whack_comment(whackfd, " "); /* spacer */
    to:
       show_separator(s);
    which tracks if/when the spacer is really needed.  This means all
    the show code can trust that:
       show_foo():
         show_separator(s);
         show_comment(s, "Foo ...");
         show_separator(s);
       show_bar():
         show_separator(s);
         show_comment(s, "Bar ...");
         show_separator(s);
    will to do the right thing (i.e., only once blank betwen the two headings).
    
    Note that it doesn't touch the --list* functions (although it probably
    should) because there's big mobs of convoluted code between the
    list_*() calls and the show_*() calls.
    
    Merge commit '7d9900df0134b09aacb521b74a55cd38a208b34c'.

commit 7d9900df0134b09aacb521b74a55cd38a208b34c
Author: Andrew Cagney <cagney at gnu.org>
Date:   Mon Apr 20 10:51:50 2020 -0400

    logging: add show_separator(), use to avoid double blank lines in output
    
    For instance:
    
       s = new_show(whackfd)
    
       show_separator(s);
       show_comment(s, "heading 1");
       show_separator(s);
       show_comment(s, "body 1");
    
       show_separator(s);
       show_comment(s, "heading 2");
       show_separator(s);
    
       show_separator(s);
       show_separator(s);
    
       free_show(s);
    
    Outputs:
    
       Heading 1
       <blank>
       body 1
       <blank>
       Heading 2
       <blank>

commit 6f115b6929d96b719835c57a3b43a8c11bfd5ab6
Author: Andrew Cagney <cagney at gnu.org>
Date:   Mon Apr 20 11:07:55 2020 -0400

    testing: don't expect double separators (blank lines)

commit 5638adf68cd236b1f38a918a5864a593bc130f41
Author: Andrew Cagney <cagney at gnu.org>
Date:   Mon Apr 20 11:04:13 2020 -0400

    testing: expect a separator (blank line) after the message: using kernel interface: netkey



More information about the Swan-commit mailing list