test: use audit.loginuid and audit.sessionid when dumping the audit item
authorDjalal Harouni <tixxdz@opendz.org>
Wed, 20 Aug 2014 16:41:03 +0000 (17:41 +0100)
committerDaniel Mack <zonque@gmail.com>
Wed, 20 Aug 2014 16:49:16 +0000 (18:49 +0200)
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
test/kdbus-util.c

index f79d7ecf680b24a36cb97532cd269fd11a13185b..5b3df7d33d250bac729acb04e14d7d97a46b8e95 100644 (file)
@@ -471,8 +471,8 @@ void msg_dump(const struct conn *conn, const struct kdbus_msg *msg)
                case KDBUS_ITEM_AUDIT:
                        printf("  +%s (%llu bytes) loginuid=%llu sessionid=%llu\n",
                               enum_MSG(item->type), item->size,
-                              (unsigned long long)item->data64[0],
-                              (unsigned long long)item->data64[1]);
+                              (unsigned long long)item->audit.loginuid,
+                              (unsigned long long)item->audit.sessionid);
                        break;
 
                case KDBUS_ITEM_CAPS: {