Hans Leidekker : server: Dump token details.

Alexandre Julliard julliard at winehq.org
Wed May 2 15:50:02 CDT 2018


Module: wine
Branch: master
Commit: 14191f2dd0b6daab7fc6d2d429a34759248b1902
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=14191f2dd0b6daab7fc6d2d429a34759248b1902

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed May  2 10:45:41 2018 +0200

server: Dump token details.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 server/token.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/server/token.c b/server/token.c
index 7deddc4..cde9c5a 100644
--- a/server/token.c
+++ b/server/token.c
@@ -158,11 +158,12 @@ static const struct object_ops token_ops =
     token_destroy              /* destroy */
 };
 
-
 static void token_dump( struct object *obj, int verbose )
 {
-    fprintf( stderr, "Security token\n" );
-    /* FIXME: dump token members */
+    struct token *token = (struct token *)obj;
+    assert( obj->ops == &token_ops );
+    fprintf( stderr, "Token id=%d.%u primary=%u impersonation level=%d\n", token->token_id.high_part,
+             token->token_id.low_part, token->primary, token->impersonation_level );
 }
 
 static unsigned int token_map_access( struct object *obj, unsigned int access )




More information about the wine-cvs mailing list