1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

change printfs to debugging messages

This commit is contained in:
rjkm 2021-09-19 19:05:50 +02:00
parent 719ac4d231
commit 3757c4671e
4 changed files with 8 additions and 8 deletions

View File

@ -41,7 +41,7 @@ int parse_config(struct dddvb *dd, char *name, char *sec,
memcpy(fname + config_len, "dddvb.conf", 11);
if ((f = fopen (fname, "r")) == NULL) {
printf("config file %s not found\n", fname);
dprintf(2, "config file %s not found\n", fname);
return -1;
}

View File

@ -8,7 +8,7 @@ LIBDDDVB_EXPORTED struct dddvb *global_dd = NULL;
LIBDDDVB_EXPORTED pthread_mutex_t dddvb_mutex = PTHREAD_MUTEX_INITIALIZER;
void __attribute__ ((constructor)) setup(void) {
printf("SETUP\n");
//printf("SETUP\n");
}
LIBDDDVB_EXPORTED struct dddvb_fe *dddvb_fe_alloc_num(struct dddvb *dd, uint32_t type, uint32_t num)

View File

@ -231,7 +231,7 @@ static int set_en50607(struct dddvb_fe *fe, uint32_t freq, uint32_t sr,
uint32_t input = 3 & (sat >> 6);
int fd = fe->fd;
//printf("input = %u, sat = %u\n", input, sat&0x3f);
dbgprintf(DEBUG_DVB, "input = %u, sat = %u\n", input, sat&0x3f);
hor &= 1;
cmd.msg[1] = slot << 3;
cmd.msg[1] |= ((t >> 8) & 0x07);
@ -323,7 +323,7 @@ static int tune_sat(struct dddvb_fe *fe)
if (input != DDDVB_UNDEF) {
input = 3 & (input >> 6);
printf("input = %u\n", input);
dbgprintf(DEBUG_DVB, "input = %u\n", input);
}
diseqc(fe->fd, lnb, fe->param.param[PARAM_POL], hi);
set_fe_input(fe, freq, fe->param.param[PARAM_SR], ds, input);
@ -349,7 +349,7 @@ static int tune_c(struct dddvb_fe *fe)
struct dtv_properties c;
int ret;
printf("tune_c()\n");
dbgprintf(DEBUG_DVB, "tune_c()\n");
set_property(fe->fd, DTV_DELIVERY_SYSTEM, SYS_DVBC_ANNEX_A);
c.num = ARRAY_SIZE(p);
@ -376,7 +376,7 @@ static int tune_j83b(struct dddvb_fe *fe)
struct dtv_properties c;
int ret;
printf("tune_j83b()\n");
dbgprintf(DEBUG_DVB, "tune_j83b()\n");
set_property(fe->fd, DTV_DELIVERY_SYSTEM, SYS_DVBC_ANNEX_B);
c.num = ARRAY_SIZE(p);
@ -542,7 +542,7 @@ static int tune(struct dddvb_fe *fe)
{
int ret;
printf("tune()\n");
dbgprintf(DEBUG_DVB, "tune()\n");
switch (fe->param.param[PARAM_MSYS]) {
case SYS_DVBS:
case SYS_DVBS2:

View File

@ -13,7 +13,7 @@ int sendlen(int sock, char *buf, int len)
for (todo = len; todo; todo -= done, buf += done)
if ((done = send(sock, buf, todo, 0)) < 0) {
printf("sendlen error\n");
dprintf(2, "sendlen error\n");
return done;
}
return len;