core: Minor cleaning up of unit/log status and log logic
authorLennart Poettering <lennart@poettering.net>
Tue, 17 Nov 2015 16:11:44 +0000 (17:11 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Nov 2015 19:41:52 +0000 (20:41 +0100)
commitdf446f96031e281ed676052ccdede0c774cb1e0c
tree4f78fa4793ec24ff37eccebaf803d76496188ed1
parent9c8d1e1a712d443c456147e15ee906035b5fa0f7
core: Minor cleaning up of unit/log status and log logic

We only reorder a few things and modernize some constructs. No
functional changes.

- Move some if checks from the caller to the callee of a few functions.

- Use IN_SE() where we can

- Move status printing functions together
src/core/job.c
src/core/unit.c