From: Andreas Steffen Date: Wed, 10 Jul 2013 09:37:22 +0000 (+0200) Subject: Fixed alignment of device ID column X-Git-Tag: 5.1.0dr2^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=979801278f1af358662efe03912e7c6626b0a2ba;p=thirdparty%2Fstrongswan.git Fixed alignment of device ID column --- diff --git a/src/libpts/plugins/imv_attestation/attest_db.c b/src/libpts/plugins/imv_attestation/attest_db.c index 749ba25448..c8769e9431 100644 --- a/src/libpts/plugins/imv_attestation/attest_db.c +++ b/src/libpts/plugins/imv_attestation/attest_db.c @@ -1554,9 +1554,9 @@ METHOD(attest_db_t, list_sessions, void, device = strlen(device) ? device : "-"; device_len = min(strlen(device), DEVICE_MAX_LEN); identity = identity.len ? identity : chunk_from_str("-"); - printf("%4d: %T %2d %-20s %.*s%*s %.*s - %N\n", session_id, &created, + printf("%4d: %T %2d %-20s %.*s%*s%.*s - %N\n", session_id, &created, FALSE, conn_id, product, device_len, device, - DEVICE_MAX_LEN - device_len, " ", identity.len, identity.ptr, + DEVICE_MAX_LEN - device_len + 1, " ", identity.len, identity.ptr, TNC_IMV_Action_Recommendation_names, rec); } e->destroy(e);