[PATCH 1/4] server: Dump token details.
Hans Leidekker
hans at codeweavers.com
Wed May 2 03:45:41 CDT 2018
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
server/token.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/server/token.c b/server/token.c
index 7deddc4664..cde9c5a584 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 )
--
2.11.0
More information about the wine-devel
mailing list