Fixed alignment of device ID column

This commit is contained in:
Andreas Steffen committed 2013-07-10 11:37:22 +02:00
1 parent b23bd71466
commit 979801278f
1 file changed
+2 -2
@@ -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);