display PC/SC error codes as 0x08%lx instead of %lx to make it explicit
they are hex values git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3586 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
b4c5c8d539
commit
4a1e1192a6
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue