Hans Leidekker : server: Dump token details.
Module: wine Branch: master Commit: 14191f2dd0b6daab7fc6d2d429a34759248b1902 URL: https://source.winehq.org/git/wine.git/?a=commit;h=14191f2dd0b6daab7fc6d2d42... Author: Hans Leidekker <hans(a)codeweavers.com> Date: Wed May 2 10:45:41 2018 +0200 server: Dump token details. Signed-off-by: Hans Leidekker <hans(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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 )
participants (1)
-
Alexandre Julliard