diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2016-11-20 21:46:32 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2016-11-20 21:46:32 +0100 |
commit | ba347998570974911ef38d88868a015d1da1b9da (patch) | |
tree | 068f06f7fe6e6bdc8e52b8285ea65e48e2dcc167 /camlibs/sonydscf1 | |
parent | 9b1148283b2b63020cdd1c9c39cca5f822f195c7 (diff) | |
download | libgphoto2-ba347998570974911ef38d88868a015d1da1b9da.tar.gz |
fixed gp_log calls
Diffstat (limited to 'camlibs/sonydscf1')
-rw-r--r-- | camlibs/sonydscf1/command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/camlibs/sonydscf1/command.c b/camlibs/sonydscf1/command.c index 562d0cd85..b1027bd9b 100644 --- a/camlibs/sonydscf1/command.c +++ b/camlibs/sonydscf1/command.c @@ -21,7 +21,7 @@ * Boston, MA 02110-1301 USA */ -#define _BSD_SOURCE +#define _DEFAULT_SOURCE #include "config.h" #include <stdio.h> @@ -145,7 +145,7 @@ char F1newstatus(GPPort *port, int verbose, char *return_buf) buf[1] = 0x02; sendcommand(port,buf, 2); i = recvdata(port, buf, 33); - gp_log (GP_LOG_DEBUG, "Status: %02x%02x:%02x(len = %d)", buf[0], buf[1], buf[2], i); + gp_log (GP_LOG_DEBUG, "sonydscf1", "Status: %02x%02x:%02x(len = %d)", buf[0], buf[1], buf[2], i); if((buf[0] != 0x03) || (buf[1] != 0x02) ||(buf[2] != 0)){ Abort(port); return(-1); @@ -198,7 +198,7 @@ int F1status(GPPort *port) buf[1] = 0x02; sendcommand(port,buf, 2); i = recvdata(port, buf, 33); - gp_log (GP_LOG_DEBUG, "Status: %02x%02x:%02x(len = %d)\n", buf[0], buf[1], buf[2], i); + gp_log (GP_LOG_DEBUG, "sonydscf1", "Status: %02x%02x:%02x(len = %d)\n", buf[0], buf[1], buf[2], i); if((buf[0] != 0x03) || (buf[1] != 0x02) ||(buf[2] != 0)){ Abort(port); return(-1); @@ -273,7 +273,7 @@ int F1fclose(GPPort*port) buf[3] = 0x00; sendcommand(port,buf, 4); i = recvdata(port, buf, 3); - gp_log (GP_LOG_DEBUG, "Fclose: %02x%02x:%02x(len = %d)\n", buf[0], buf[1], buf[2], i); + gp_log (GP_LOG_DEBUG, "sonydscf1", "Fclose: %02x%02x:%02x(len = %d)\n", buf[0], buf[1], buf[2], i); if((buf[0] != 0x02) || (buf[1] != 0x0B) || (buf[2] != 0x00)){ fprintf(stderr,"F1fclose fail\n"); Abort(port); |