Allow output of session time in UTC

This commit is contained in:
Andreas Steffen
2014-02-05 12:06:22 +01:00
parent d6804e3041
commit 24f59868c4
@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2011-2012 Andreas Steffen * Copyright (C) 2011-2014 Andreas Steffen
* HSR Hochschule fuer Technik Rapperswil * HSR Hochschule fuer Technik Rapperswil
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
@@ -1555,7 +1555,7 @@ METHOD(attest_db_t, list_sessions, void,
device_len = min(strlen(device), DEVICE_MAX_LEN); device_len = min(strlen(device), DEVICE_MAX_LEN);
identity = identity.len ? identity : chunk_from_str("-"); 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, this->utc, conn_id, product, device_len, device,
DEVICE_MAX_LEN - device_len + 1, " ", (int)identity.len, DEVICE_MAX_LEN - device_len + 1, " ", (int)identity.len,
identity.ptr, TNC_IMV_Action_Recommendation_names, rec); identity.ptr, TNC_IMV_Action_Recommendation_names, rec);
} }