Output errno, very slightly useful when debugging problems with connecting
to parport.
Comments?
--
Øyvind Harboe
Embedded software and hardware consulting services
http://www.zylin.com
### Eclipse Workspace Patch 1.0
#P openocd
Index: src/jtag/parport.c
===================================================================
--- src/jtag/parport.c (revision 2522)
+++ src/jtag/parport.c (working copy)
@@ -337,7 +337,8 @@
if (device_handle < 0)
{
- LOG_ERROR("cannot open device. check it exists and that user
read and write rights are set");
+ int err = errno;
+ LOG_ERROR("cannot open device. check it exists and that user
read and write rights are set. errno=%d", err);
return ERROR_JTAG_INIT_FAILED;
}
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development