debug message changes

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1874 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.3
Stéphane Fillod, F8CFE 2004-11-15 16:23:49 +00:00
rodzic 0643474a1f
commit 264bea522e
1 zmienionych plików z 15 dodań i 15 usunięć

Wyświetl plik

@ -1,8 +1,8 @@
/*
* Hamlib Kenwood backend - TS870S description
* Copyright (c) 2000-2003 by Stephane Fillod
* Copyright (c) 2000-2004 by Stephane Fillod
*
* $Id: ts870s.c,v 1.37 2003-10-01 19:31:59 fillods Exp $
* $Id: ts870s.c,v 1.38 2004-11-15 16:23:49 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -72,8 +72,8 @@ int ts870s_get_vfo(RIG *rig, vfo_t *vfo)
return retval;
if (vfo_len != 4 || vfobuf[1] != 'R') {
rig_debug(RIG_DEBUG_ERR,"ts870s_get_vfo: unexpected answer %s, "
"len=%d\n", vfobuf, vfo_len);
rig_debug(RIG_DEBUG_ERR,"%s: unexpected answer %s, "
"len=%d\n",__FUNCTION__,vfobuf, vfo_len);
return -RIG_ERJCTED;
}
@ -83,8 +83,8 @@ int ts870s_get_vfo(RIG *rig, vfo_t *vfo)
case '1': *vfo = RIG_VFO_B; break;
case '2': *vfo = RIG_VFO_MEM; break;
default:
rig_debug(RIG_DEBUG_ERR,"ts870s_get_vfo: unsupported VFO %c\n",
vfobuf[2]);
rig_debug(RIG_DEBUG_ERR,"%s: unsupported VFO %c\n",
__FUNCTION__,vfobuf[2]);
return -RIG_EPROTO;
}
return RIG_OK;
@ -103,8 +103,8 @@ int ts870s_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
if (buf_len != 4 || buf[1] != 'D')
{
rig_debug(RIG_DEBUG_ERR,"ts870s_get_mode: unexpected MD answer, len=%d\n",
buf_len);
rig_debug(RIG_DEBUG_ERR,"%s: unexpected MD answer, len=%d\n",
__FUNCTION__,buf_len);
return -RIG_ERJCTED;
}
@ -120,8 +120,8 @@ int ts870s_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
case MD_FSKR: *mode = RIG_MODE_RTTYR; break;
case MD_NONE: *mode = RIG_MODE_NONE; break;
default:
rig_debug(RIG_DEBUG_ERR,"ts870s_get_mode: "
"unsupported mode '%c'\n", buf[2]);
rig_debug(RIG_DEBUG_ERR,"%s: unsupported mode '%c'\n",
__FUNCTION__,buf[2]);
return -RIG_EINVAL;
}
@ -132,8 +132,8 @@ int ts870s_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
if (buf_len != 7 || buf[1] != 'W')
{
rig_debug(RIG_DEBUG_ERR,"ts870s_get_mode: unexpected FW answer, len=%d\n",
buf_len);
rig_debug(RIG_DEBUG_ERR,"%s: unexpected FW answer, len=%d\n",
__FUNCTION__,buf_len);
return -RIG_ERJCTED;
}
@ -158,8 +158,8 @@ int ts870s_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
case RIG_MODE_RTTY: kmode = MD_FSK; break;
case RIG_MODE_RTTYR: kmode = MD_FSKR; break;
default:
rig_debug(RIG_DEBUG_ERR,"ts870s_set_mode: "
"unsupported mode %d\n", mode);
rig_debug(RIG_DEBUG_ERR,"%s: unsupported mode %d\n",
__FUNCTION__,mode);
return -RIG_EINVAL;
}
@ -192,7 +192,7 @@ const struct rig_caps ts870s_caps = {
.rig_model = RIG_MODEL_TS870S,
.model_name = "TS-870S",
.mfg_name = "Kenwood",
.version = "0.3.3",
.version = "0.3.4",
.copyright = "LGPL",
.status = RIG_STATUS_BETA,
.rig_type = RIG_TYPE_TRANSCEIVER,