You mean 0x%08lx, right?
On 10/20/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Revision: 3586 > Author: ludovic.rousseau > Date: 2008-10-20 09:46:24 +0200 (Mon, 20 Oct 2008) > > Log Message: > ----------- > display PC/SC error codes as 0x08%lx instead of %lx to make it explicit > they are hex values > > Modified Paths: > -------------- > trunk/src/libopensc/reader-pcsc.c > Modified: trunk/src/libopensc/reader-pcsc.c > =================================================================== > --- trunk/src/libopensc/reader-pcsc.c 2008-10-20 07:27:41 UTC (rev 3585) > +++ trunk/src/libopensc/reader-pcsc.c 2008-10-20 07:46:24 UTC (rev 3586) > @@ -49,7 +49,7 @@ > #undef SCARD_PROTOCOL_ANY > #define SCARD_PROTOCOL_ANY (SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1) > /* Error printing */ > -#define PCSC_ERROR(ctx, desc, rv) sc_error(ctx, desc ": %lx\n", rv); > +#define PCSC_ERROR(ctx, desc, rv) sc_error(ctx, desc ": 0x08%lx\n", rv); > > /* Utility for handling big endian IOCTL codes. */ > #define dw2i_be(a, x) ((((((a[x] << 8) + a[x+1]) << 8) + a[x+2]) << 8) + > a[x+3]) > > > > _______________________________________________ > opensc-commits mailing list > [EMAIL PROTECTED] > http://www.opensc-project.org/mailman/listinfo/opensc-commits > _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel