Reduce verbosity of rig_strrmode and read_string

pull/90/head
Michael Black 2019-02-05 09:31:54 -06:00
rodzic a55a664401
commit 8f93173462
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -671,7 +671,7 @@ int HAMLIB_API read_string(hamlib_port_t *p,
int rd_count, total_count = 0;
int retval;
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
rig_debug(RIG_DEBUG_TRACE, "%s called\n", __func__);
if (!p || !rxbuffer)
{
@ -754,7 +754,8 @@ int HAMLIB_API read_string(hamlib_port_t *p,
*/
rd_count = port_read(p, &rxbuffer[total_count], 1);
if (rd_count < 0)
/* if we get 0 bytes or an error something is wrong */
if (rd_count <= 0)
{
dump_hex((unsigned char *) rxbuffer, total_count);
rig_debug(RIG_DEBUG_ERR,

Wyświetl plik

@ -384,7 +384,7 @@ const char * HAMLIB_API rig_strrmode(rmode_t mode)
{
int i;
rig_debug(RIG_DEBUG_VERBOSE, "%s called mode=0x%"PRXll"\n", __func__, mode);
rig_debug(RIG_DEBUG_TRACE, "%s called mode=0x%"PRXll"\n", __func__, mode);
if (mode == RIG_MODE_NONE)
{