From: <ny...@us...> - 2007-02-10 18:03:25
|
Revision: 330 http://svn.sourceforge.net/pmplib/?rev=330&view=rev Author: nyaochi Date: 2007-02-10 10:03:21 -0800 (Sat, 10 Feb 2007) Log Message: ----------- Show error codes in "0x%X" format. Modified Paths: -------------- trunk/pmplib/frontend/easypmp/cui/main.c Modified: trunk/pmplib/frontend/easypmp/cui/main.c =================================================================== --- trunk/pmplib/frontend/easypmp/cui/main.c 2007-02-10 17:55:24 UTC (rev 329) +++ trunk/pmplib/frontend/easypmp/cui/main.c 2007-02-10 18:03:21 UTC (rev 330) @@ -265,7 +265,7 @@ // Initialize PMPlib library. if (res = pmplib_init(&pmplib)) { - fprintf(fpe, "ERROR: Failed to initialize PMPlib library (%d)\n", res); + fprintf(fpe, "ERROR: Failed to initialize PMPlib library (0x%X)\n", res); ret = 1; goto exit_main; } @@ -306,7 +306,7 @@ // Create a PMP instance. res = pmplib_create(pmplib, &pmp, opt.path_to_root, opt.model); if (!pmp) { - fprintf(fpe, "ERROR: Failed to find a player (%X)\n", res); + fprintf(fpe, "ERROR: Failed to find a player (0x%X)\n", res); ret = 1; goto exit_main; } @@ -340,7 +340,7 @@ } res = pmp->open(pmp, openflag); if (res) { - fprintf(fpe, "ERROR: Failed to open the player (%X)\n", res); + fprintf(fpe, "ERROR: Failed to open the player (0x%X)\n", res); ret = 1; goto exit_main; } @@ -406,7 +406,7 @@ } res = pmp->close(pmp); if (res) { - fprintf(fpe, "ERROR: Failed to close the player (%X)\n", res); + fprintf(fpe, "ERROR: Failed to close the player (0x%X)\n", res); ret = 1; goto exit_main; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |