This patches solves an issue that occurs when TrouSerS is compiled with a 64bit 
system. The error displayed is:

ps/tspps.c: In function ‘get_user_ps_path’:
ps/tspps.c:167: error: format ‘%d’ expects type ‘int’, but argument 8 has type
 ‘long unsigned int’


Signed-off-by: Roberto Sassu <[email protected]>
---
 src/tspi/ps/tspps.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/tspi/ps/tspps.c b/src/tspi/ps/tspps.c
index 9dfc16d..8569aec 100644
--- a/src/tspi/ps/tspps.c
+++ b/src/tspi/ps/tspps.c
@@ -164,7 +164,7 @@ get_user_ps_path(char **file)
                      TSS_USER_PS_FILE);
 #endif
        if (rc == sizeof (buf)) {
-               LogDebugFn("USER PS: Path to file too long! (> %d bytes)", 
sizeof (buf));
+               LogDebugFn("USER PS: Path to file too long! (> %zd bytes)", 
sizeof (buf));
        } else
                *file = strdup(buf);
 
-- 
1.7.2.2


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech

Reply via email to