1. 04 Sep, 2014 1 commit
  2. 11 Jul, 2014 1 commit
  3. 27 Apr, 2014 1 commit
  4. 26 Apr, 2014 3 commits
  5. 30 Apr, 2013 2 commits
  6. 26 Apr, 2013 1 commit
    • Zbigniew Jędrzejewski-Szmek's avatar
      Add printf attributes in exported headers · e4d2bfdd
      Zbigniew Jędrzejewski-Szmek authored
      gcc (and other compilers) sometimes generate spurious warnings, and
      thus users of public headers must be able to disable warnings.
      
      Printf format attributes can be disabled by setting
          #define _sd_printf_attr_
      before including the header file.
      
      Also, add similar logic for sentinel attribute:
          #define _sd_sentinel_attr_
      before including the header file disables the attribute.
      e4d2bfdd
  7. 24 Apr, 2013 2 commits
  8. 23 Apr, 2013 4 commits
  9. 17 Apr, 2013 3 commits
    • Harald Hoyer's avatar
      journal: add one more level on top with AND · cd34b3c6
      Harald Hoyer authored
      When using "-p" and "-b" in combination with "-u", the output is not
      what you would expect. The reason is the sd_journal_add_disjunction()
      call in add_matches_for_unit() and add_matches_for_user_unit(), which
      adds two ORs without taking the other conditions to every OR.
      
      Adding another level on top with AND and sd_journal_add_conjunction()
      solves the problem.
      
      Output before:
      
      $ journalctl -o short-monotonic -ab -p 0 -u sshd.service
      
      -- Reboot --
      [    3.216305] lenovo systemd[1]: Starting OpenSSH server daemon...
      -- Reboot --
      [    3.168666] lenovo systemd[1]: Starting OpenSSH server daemon...
      [    3.169639] lenovo systemd[1]: Started OpenSSH server daemon.
      [36285.635389] lenovo systemd[1]: Stopped OpenSSH server daemon.
      -- Reboot --
      [   10.838657] lenovo systemd[1]: Starting OpenSSH server daemon...
      [   10.913698] lenovo systemd[1]: Started OpenSSH server daemon.
      [ 6881.035183] lenovo systemd[1]: Stopped OpenSSH server daemon.
      -- Reboot --
      [    6.636228] lenovo systemd[1]: Starting OpenSSH server daemon...
      [    6.662573] lenovo systemd[1]: Started OpenSSH server daemon.
      [    6.681148] lenovo sshd[397]: Server listening on 0.0.0.0 port 22.
      [    6.681379] lenovo sshd[397]: Server listening on :: port 22.
      
      As we see, the output is from _every_ boot and priority 0 is not taken
      into account.
      
      Output after patch:
      
      $ journalctl -o short-monotonic -ab -p 0 -u sshd.service
      -- Logs begin at Sun 2013-02-24 20:54:44 CET, end at Tue 2013-03-19 14:58:21 CET. --
      
      Increasing the priority:
      
      $ journalctl -o short-monotonic -ab -p 6 -u sshd.service
      -- Logs begin at Sun 2013-02-24 20:54:44 CET, end at Tue 2013-03-19 14:59:12 CET. --
      [    6.636228] lenovo systemd[1]: Starting OpenSSH server daemon...
      [    6.662573] lenovo systemd[1]: Started OpenSSH server daemon.
      [    6.681148] lenovo sshd[397]: Server listening on 0.0.0.0 port 22.
      [    6.681379] lenovo sshd[397]: Server listening on :: port 22.
      cd34b3c6
    • Zbigniew Jędrzejewski-Szmek's avatar
    • Zbigniew Jędrzejewski-Szmek's avatar
      Report about syntax errors with metadata · e8e581bf
      Zbigniew Jędrzejewski-Szmek authored
      The information about the unit for which files are being parsed
      is passed all the way down. This way messages land in the journal
      with proper UNIT=... or USER_UNIT=... attribution.
      
      'systemctl status' and 'journalctl -u' not displaying those messages
      has been a source of confusion for users, since the journal entry for
      a misspelt setting was often logged quite a bit earlier than the
      failure to start a unit.
      Based-on-a-patch-by: 's avatarOleksii Shevchuk <alxchk@gmail.com>
      e8e581bf
  10. 16 Apr, 2013 2 commits
  11. 15 Apr, 2013 2 commits
  12. 14 Apr, 2013 2 commits
  13. 13 Apr, 2013 1 commit
  14. 11 Apr, 2013 3 commits
  15. 09 Apr, 2013 1 commit
  16. 08 Apr, 2013 1 commit
  17. 05 Apr, 2013 5 commits
  18. 04 Apr, 2013 4 commits
  19. 02 Apr, 2013 1 commit