mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-28 12:09:48 +01:00
better pongoOS logging
This commit is contained in:
1 parent
2c5997cd28
commit
98be5af558
1 file changed
+5
-1
+5
-1
@@ -338,7 +338,11 @@ int issue_pongo_command(usb_device_handle_t handle, char *command)
|
|||||||
LOG(LOG_ERROR, "Pongo command %s too long (max %d)", command, CMD_LEN_MAX - 2);
|
LOG(LOG_ERROR, "Pongo command %s too long (max %d)", command, CMD_LEN_MAX - 2);
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
LOG(LOG_VERBOSE, "Executing PongoOS command: '%s'", command);
|
if (verbose < 3 || verbose > 4) {
|
||||||
|
LOG(LOG_VERBOSE, "Executing PongoOS command: '%s'", command);
|
||||||
|
} else {
|
||||||
|
printf("%s\n", command);
|
||||||
|
}
|
||||||
snprintf(command_buf, 512, "%s\n", command);
|
snprintf(command_buf, 512, "%s\n", command);
|
||||||
len = strlen(command_buf);
|
len = strlen(command_buf);
|
||||||
ret = USBControlTransfer(handle, 0x21, 4, 1, 0, 0, NULL, NULL);
|
ret = USBControlTransfer(handle, 0x21, 4, 1, 0, 0, NULL, NULL);
|
||||||
|
|||||||
Reference in new issue
Block a user