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

Andrew Cagney cagney at vault.libreswan.fi
Wed Nov 29 16:37:55 UTC 2017


New commits:
commit 1fb95313fa9f0010618941b64fe463a8d0578341
Author: Andrew Cagney <cagney at gnu.org>
Date:   Mon Nov 27 13:07:33 2017 -0500

    logging: convert set_cur_state() and set_cur_connection() to push/pop functions
    
    For instance:
        old_state = push_cur_state(st)
        ....
        pop_cur_state(old_state)
    this way, instead of debug-logging the near useless message:
       processing connection ...
    it instead can debug-log changes such as:
       start processing ...
       suspend processing ...
       resume processing ...
       stop processing ...
    as states and connections get shuffled around.
    
    Well, at least in theory it can.  Direct assignments to CUR_STATE
    and CUR_CONNECTION along with calls to reset_globals() mean that
    it is far from perfect :-)
    
    Avoid code churn by mapping the old macros onto these functions.



More information about the Swan-commit mailing list