tpm2: downgrade most log functions from error to debug
authorDan Streetman <ddstreet@ieee.org>
Fri, 8 Sep 2023 16:39:49 +0000 (12:39 -0400)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 3 Oct 2023 16:13:50 +0000 (17:13 +0100)
commitf9a0ee7554d18f8f1c1968811efed85a2f5e9013
tree173917ce5c4c70e280472e9d5fe157752f98fe94
parentd3dde190c1e805ceb7307a7494558d52ea387b8d
tpm2: downgrade most log functions from error to debug

Because most TPM2 functions here are 'library-like' functions, they should be
at debug level, not error level.

The only functions not reduced to logging at debug are tpm2_list_devices(),
since it is expected to print output, and the tpm2_parse_pcr_argument_*()
functions, since the system-wide parse_*_argument() functions generally log at
error level.
src/boot/measure.c
src/cryptenroll/cryptenroll-tpm2.c
src/cryptsetup/cryptsetup-tokens/luks2-tpm2.c
src/cryptsetup/cryptsetup-tpm2.c
src/cryptsetup/cryptsetup.c
src/partition/repart.c
src/pcrextend/pcrextend.c
src/shared/creds-util.c
src/shared/tpm2-util.c
src/shared/tpm2-util.h
src/tpm2-setup/tpm2-setup.c