Subject: afs/fs/afs key_afs.c,1.1,1.2

From: [email-masked]
Date: Wed, 17 Sep 2003 15:57:44 +0100

Update of /home/cvs/afs/fs/afs
In directory phoenix.infradead.org:/tmp/cvs-serv7605/fs/afs

Modified Files:
	key_afs.c 
Log Message:
print expiry time as time remaining instead of as absolute UNIX time

Index: key_afs.c
===================================================================
RCS file: /home/cvs/afs/fs/afs/key_afs.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- key_afs.c	10 Sep 2003 08:23:15 -0000	1.1
+++ key_afs.c	17 Sep 2003 14:57:41 -0000	1.2
@@ -107,12 +107,12 @@
 
 	keydata = key->payload.data;
 
-	seq_printf(m, "%s => { s=%hu t=%hu v=%d x=%x }",
+	seq_printf(m, "%s => { s=%hu t=%hu v=%d x=%lx }",
 		   (char *) key->description.data,
 		   keydata->session_key_size,
 		   keydata->ticket_size,
 		   keydata->kvno,
-		   (int) keydata->expiry);
+		   (int) keydata->expiry - CURRENT_TIME.tv_sec);
 }
 
 int __init afs_key_register(void)