diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-11-01 15:56:25 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-11-30 20:43:25 +0100 |
commit | 691c2e2e8833c838cdd2f67fcbdcadab01552960 (patch) | |
tree | 0ea3ad028830256fb7a0fad5918b2499305cc2e7 /src/veritysetup/veritysetup.c | |
parent | util-lib: add cleanup function for crypt_free (diff) | |
download | systemd-691c2e2e8833c838cdd2f67fcbdcadab01552960.tar.xz systemd-691c2e2e8833c838cdd2f67fcbdcadab01552960.zip |
util-lib: export cryptsetup logging glue function
Diffstat (limited to 'src/veritysetup/veritysetup.c')
-rw-r--r-- | src/veritysetup/veritysetup.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/veritysetup/veritysetup.c b/src/veritysetup/veritysetup.c index 2376f1dc2c..d3066ca429 100644 --- a/src/veritysetup/veritysetup.c +++ b/src/veritysetup/veritysetup.c @@ -41,10 +41,6 @@ static int help(void) { return 0; } -static void log_glue(int level, const char *msg, void *usrptr) { - log_debug("%s", msg); -} - int main(int argc, char *argv[]) { _cleanup_(crypt_freep) struct crypt_device *cd = NULL; int r; @@ -89,7 +85,7 @@ int main(int argc, char *argv[]) { goto finish; } - crypt_set_log_callback(cd, log_glue, NULL); + crypt_set_log_callback(cd, cryptsetup_log_glue, NULL); status = crypt_status(cd, argv[2]); if (IN_SET(status, CRYPT_ACTIVE, CRYPT_BUSY)) { @@ -127,7 +123,7 @@ int main(int argc, char *argv[]) { goto finish; } - crypt_set_log_callback(cd, log_glue, NULL); + crypt_set_log_callback(cd, cryptsetup_log_glue, NULL); r = crypt_deactivate(cd, argv[2]); if (r < 0) { |