Skip to content

Commit

Permalink
more debugoutput
Browse files Browse the repository at this point in the history
  • Loading branch information
msmeissn committed Oct 1, 2024
1 parent 8b8c81c commit c760c46
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions libgphoto2_port/vusb/vusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ gp_port_vusb_close (GPPort *port)
static int
gp_port_vusb_write (GPPort *port, const char *bytes, int size)
{
gp_log(GP_LOG_DEBUG,__FUNCTION__,"()");
gp_log(GP_LOG_DEBUG,__FUNCTION__,"(%d)", size);

C_PARAMS (port && port->pl && port->pl->vcamera);
return port->pl->vcamera->write(port->pl->vcamera, 0x02, (unsigned char*)bytes, size);
Expand All @@ -153,7 +153,7 @@ gp_port_vusb_write (GPPort *port, const char *bytes, int size)
static int
gp_port_vusb_read(GPPort *port, char *bytes, int size)
{
gp_log(GP_LOG_DEBUG,__FUNCTION__,"()");
gp_log(GP_LOG_DEBUG,__FUNCTION__,"(%d)", size);
return port->pl->vcamera->read(port->pl->vcamera, 0x81, (unsigned char*)bytes, size);
}

Expand Down Expand Up @@ -184,7 +184,7 @@ gp_port_vusb_reset(GPPort *port)
static int
gp_port_vusb_check_int (GPPort *port, char *bytes, int size, int timeout)
{
gp_log(GP_LOG_DEBUG,__FUNCTION__,"()");
gp_log(GP_LOG_DEBUG,__FUNCTION__,"(bytes=%d, timeout=%d)", size, timeout);
C_PARAMS (port && port->pl && timeout >= 0);

return port->pl->vcamera->readint(port->pl->vcamera, (unsigned char*)bytes, size, timeout);
Expand All @@ -202,7 +202,7 @@ gp_port_vusb_clear_halt_lib(GPPort *port, int ep)
{
unsigned char internal_ep;

gp_log(GP_LOG_DEBUG,__FUNCTION__,"()");
gp_log(GP_LOG_DEBUG,__FUNCTION__,"(ep=%d)", ep);
C_PARAMS (port && port->pl);

switch (ep) {
Expand Down Expand Up @@ -231,7 +231,7 @@ static int
gp_port_vusb_msg_interface_write_lib(GPPort *port, int request,
int value, int index, char *bytes, int size)
{
gp_log(GP_LOG_DEBUG,__FUNCTION__,"()");
gp_log(GP_LOG_DEBUG,__FUNCTION__,"(request=%d, value=%d, index=%d, size=%d)", request, value, index, size);
return GP_OK;
}

Expand All @@ -252,7 +252,7 @@ static int
gp_port_vusb_msg_class_write_lib(GPPort *port, int request,
int value, int index, char *bytes, int size)
{
gp_log(GP_LOG_DEBUG,__FUNCTION__,"()");
gp_log(GP_LOG_DEBUG,__FUNCTION__,"(request=%d, value=%d, index=%d, size=%d)", request, value, index, size);
return GP_OK;
}

Expand All @@ -262,7 +262,7 @@ static int
gp_port_vusb_msg_class_read_lib(GPPort *port, int request,
int value, int index, char *bytes, int size)
{
gp_log(GP_LOG_DEBUG,__FUNCTION__,"()");
gp_log(GP_LOG_DEBUG,__FUNCTION__,"(request=%d, value=%d, index=%d, size=%d)", request, value, index, size);
return GP_OK; /* or bytes */
}

Expand All @@ -271,7 +271,7 @@ static int
gp_port_vusb_msg_write_lib(GPPort *port, int request, int value, int index,
char *bytes, int size)
{
gp_log(GP_LOG_DEBUG,__FUNCTION__,"()");
gp_log(GP_LOG_DEBUG,__FUNCTION__,"(request=%d, value=%d, index=%d, size=%d)", request, value, index, size);
return GP_OK;
}

Expand Down

0 comments on commit c760c46

Please sign in to comment.