libcommon: add common debugging routines

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
libmount: use macros from include/debug.h

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
libcommon: define more debugging macros

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
libcommon: don't mention lib versions in debug macros

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
libmount: further debug.h integration

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
libblkid: use include/debug.h

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
libfdisk: use include/debug.h

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
clean up redundant macros and defines

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
tests: write tests/failures to build- instead of srcdir

All other test output goes to builddir too and moreover "make distcheck"
complains about writing to it's read-only srcdir.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests: return error if failures file not usable

In past this could happen when doing make distcheck.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
build-sys: libmount/python/__init__.py is always a dist file

"make dist" and "make distcheck" should work after a bare
./configure to give us a full featured tar ball.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests: try hard to create swaplabel's test image

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
cfdisk: fix typo (undeclared variable since b1f58330)

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
unshare: include libmount.h to provide missing MS_* defines

Since 6728ca10 we are using MS_PRIVATE and MS_REC which are not defined
in some systems's sys/mount.h.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
cfdisk: fix compile-time error fixes #59

+ For compile to work also needs pull request #56 applied
Merge branch 'fix-unshare-defines' of https://github.com/rudimeier/util-linux

* 'fix-unshare-defines' of https://github.com/rudimeier/util-linux:
  unshare: include libmount.h to provide missing MS_* defines
build-sys: gettexts 0.18 -> 0.18.2 due to MKDIR_P

The autopoint is designed to not use the latest installed bug fix
release, if you specify

	AM_GNU_GETTEXT_VERSION([0.18])

in your configure.ac then it really uses 0.18, rather than also
installed 0.18.2 or 0.18.3. It means that bug fix update has no any
effect. Oh...

The AM_PROG_MKDIR_P is deprecated for years, unfortunately still used
in 0.18 gettext m4 stuff. This problem should be fixed in 0.18.2 where
is the correct AC_PROG_MKDIR_P macro.

If you do not have gettext 0.18.2 (or 0.18.3) then update.

Signed-off-by: Karel Zak <kzak@redhat.com>
Merge branch 'common_debug' of https://github.com/ooprala/util-linux

* 'common_debug' of https://github.com/ooprala/util-linux:
  clean up redundant macros and defines
  libfdisk: use include/debug.h
  libblkid: use include/debug.h
  libmount: further debug.h integration
  libcommon: don't mention lib versions in debug macros
  libcommon: define more debugging macros
  libmount: use macros from include/debug.h
  libcommon: add common debugging routines
include/debug: fix coding style

Signed-off-by: Karel Zak <kzak@redhat.com>
include/debug: add another debug macros

Signed-off-by: Karel Zak <kzak@redhat.com>