dev-type: dev_get_primary_dev: fix ret value if dev is a partition and we used sysfs
cleanup:  Remove message used for development

Failed to clean out all messages used during development.
cleanup: reformat code of dmeventd
cleanup: use log_print instead of log_error

Since reduce the message has informational character and doesn't lead
to exit of the command - reduce the log level to info print as we
use for other similar types.

Reindent next print message.
cleanup: code swap

Use easier to read positive query and indent line.
cleanup: move mirror check code closer

Group a bit more code related to mirrors.
cleanup: use "" around type in error message

A bit more cleaner error message for wrong discards paramater.
cleanup: add dot to lvchange message
thin: check for creation of pool
debug: add pointer to -DDEBUG_POOL compilation

Show 'at' pointer address with pool name.
It's useful for debugging to be able to locate pointer address in the
debug trace log. It's only available when compiled with extra debug
compilation flag DEBUG_POOL in make.tmpl.
dmeventd: fix cleanup commit

Fixing wrong rebase of cleanup commit.
Put back call to outth.
cleanup: clear outdated comment (TODO already done)
metadata: log_debug only when BA found in metadata

...not the other way round as it was before. This way it makes
more sense as BA use is exceptional and it's useless to
contaminate the log with messages about BA not being found
in metadata.
dmeventd: move code from signal handler

Instead of calling syslog() from signal event handler,
run all logging code in the main loop.

Also it needs to take the lock and check for list
only when really needed.
cleanup: more dmeventd code cleanup
cleanup: simplify code around flock
cleanup: move bit flags in order

Preseve the sequence of bits.
archiver: do not archive vg more then once

Do not keep multiple archives for the executed command.
Reuse the ALLOCATABLE_PV from pv status for
ARCHIVED_VG vg status. Mark VG with the bit with the
first archivation.
vg/lvchange: drop local archived handling

Drop code handling archived flag now handled implicitely.
cleanup: introduce return_ECMD_FAILED macro

Use shortening macro for common code sequence
stack;
return ECMD_FAILED;