Commit 20cdb96b authored by Franksen, Benjamin's avatar Franksen, Benjamin
Browse files

scan: fix debug messages in ellsi_check

parent d5e4f3f6
......@@ -295,9 +295,9 @@ static int ellsi_check(int sock) {
memset(&ack, 0, sizeof(ack));
r = recv(sock, &ack, sizeof(ack), MSG_WAITALL);
if (r < 0) {
printf("ellsi_register: recv failed\n"); return r;
printf("ellsi_check: recv failed\n"); return r;
}
debug("ellsi_register: got back magic %#x cmd %#x subcmd %#x payloadLen %d\n",
debug("ellsi_check: got back magic %#x cmd %#x subcmd %#x payloadLen %d\n",
ntohl(ack.header.magic),
ntohl(ack.header.command),
ntohl(ack.header.subcommand),
......@@ -311,7 +311,7 @@ static int ellsi_check(int sock) {
&& ntohl(ack.header.command) == ELLSI_CMD_CTRL
&& ntohl(ack.header.subcommand) == ELLSI_IOCTL_GET_LAST_STATE)
{
debug("ellsi_register: last cmd %#x subcmd %#x state %#x\n",
debug("ellsi_check: last cmd %#x subcmd %#x state %#x\n",
ntohl(ack.payload.lastCommand),
ntohl(ack.payload.lastSubcommand),
ntohl(ack.payload.lastState));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment