Commit fb9393b5 authored by Harvey Harrison's avatar Harvey Harrison Committed by Mauro Carvalho Chehab

V4L/DVB (7516): media/dvb/ttusb-budget replace remaining __FUNCTION__ occurrences

__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 3ca7fc84
...@@ -153,12 +153,12 @@ static int ttusb_cmd(struct ttusb *ttusb, ...@@ -153,12 +153,12 @@ static int ttusb_cmd(struct ttusb *ttusb,
(u8 *) data, len, &actual_len, 1000); (u8 *) data, len, &actual_len, 1000);
if (err != 0) { if (err != 0) {
dprintk("%s: usb_bulk_msg(send) failed, err == %i!\n", dprintk("%s: usb_bulk_msg(send) failed, err == %i!\n",
__FUNCTION__, err); __func__, err);
mutex_unlock(&ttusb->semusb); mutex_unlock(&ttusb->semusb);
return err; return err;
} }
if (actual_len != len) { if (actual_len != len) {
dprintk("%s: only wrote %d of %d bytes\n", __FUNCTION__, dprintk("%s: only wrote %d of %d bytes\n", __func__,
actual_len, len); actual_len, len);
mutex_unlock(&ttusb->semusb); mutex_unlock(&ttusb->semusb);
return -1; return -1;
...@@ -168,7 +168,7 @@ static int ttusb_cmd(struct ttusb *ttusb, ...@@ -168,7 +168,7 @@ static int ttusb_cmd(struct ttusb *ttusb,
ttusb->last_result, 32, &actual_len, 1000); ttusb->last_result, 32, &actual_len, 1000);
if (err != 0) { if (err != 0) {
printk("%s: failed, receive error %d\n", __FUNCTION__, printk("%s: failed, receive error %d\n", __func__,
err); err);
mutex_unlock(&ttusb->semusb); mutex_unlock(&ttusb->semusb);
return err; return err;
...@@ -229,7 +229,7 @@ static int ttusb_i2c_msg(struct ttusb *ttusb, ...@@ -229,7 +229,7 @@ static int ttusb_i2c_msg(struct ttusb *ttusb,
if (err || b[0] != 0x55 || b[1] != id) { if (err || b[0] != 0x55 || b[1] != id) {
dprintk dprintk
("%s: usb_bulk_msg(recv) failed, err == %i, id == %02x, b == ", ("%s: usb_bulk_msg(recv) failed, err == %i, id == %02x, b == ",
__FUNCTION__, err, id); __func__, err, id);
return -EREMOTEIO; return -EREMOTEIO;
} }
...@@ -273,7 +273,7 @@ static int master_xfer(struct i2c_adapter* adapter, struct i2c_msg *msg, int num ...@@ -273,7 +273,7 @@ static int master_xfer(struct i2c_adapter* adapter, struct i2c_msg *msg, int num
snd_buf, snd_len, rcv_buf, rcv_len); snd_buf, snd_len, rcv_buf, rcv_len);
if (err < rcv_len) { if (err < rcv_len) {
dprintk("%s: i == %i\n", __FUNCTION__, i); dprintk("%s: i == %i\n", __func__, i);
break; break;
} }
...@@ -327,7 +327,7 @@ static int ttusb_boot_dsp(struct ttusb *ttusb) ...@@ -327,7 +327,7 @@ static int ttusb_boot_dsp(struct ttusb *ttusb)
done: done:
if (err) { if (err) {
dprintk("%s: usb_bulk_msg() failed, return value %i!\n", dprintk("%s: usb_bulk_msg() failed, return value %i!\n",
__FUNCTION__, err); __func__, err);
} }
return err; return err;
...@@ -427,7 +427,7 @@ static int ttusb_init_controller(struct ttusb *ttusb) ...@@ -427,7 +427,7 @@ static int ttusb_init_controller(struct ttusb *ttusb)
if ((err = ttusb_result(ttusb, get_version, sizeof(get_version)))) if ((err = ttusb_result(ttusb, get_version, sizeof(get_version))))
return err; return err;
dprintk("%s: stc-version: %c%c%c%c%c\n", __FUNCTION__, dprintk("%s: stc-version: %c%c%c%c%c\n", __func__,
get_version[4], get_version[5], get_version[6], get_version[4], get_version[5], get_version[6],
get_version[7], get_version[8]); get_version[7], get_version[8]);
...@@ -437,7 +437,7 @@ static int ttusb_init_controller(struct ttusb *ttusb) ...@@ -437,7 +437,7 @@ static int ttusb_init_controller(struct ttusb *ttusb)
memcmp(get_version + 4, "V 2.2", 5)) { memcmp(get_version + 4, "V 2.2", 5)) {
printk printk
("%s: unknown STC version %c%c%c%c%c, please report!\n", ("%s: unknown STC version %c%c%c%c%c, please report!\n",
__FUNCTION__, get_version[4], get_version[5], __func__, get_version[4], get_version[5],
get_version[6], get_version[7], get_version[8]); get_version[6], get_version[7], get_version[8]);
} }
...@@ -453,7 +453,7 @@ static int ttusb_init_controller(struct ttusb *ttusb) ...@@ -453,7 +453,7 @@ static int ttusb_init_controller(struct ttusb *ttusb)
ttusb_result(ttusb, get_dsp_version, sizeof(get_dsp_version)); ttusb_result(ttusb, get_dsp_version, sizeof(get_dsp_version));
if (err) if (err)
return err; return err;
printk("%s: dsp-version: %c%c%c\n", __FUNCTION__, printk("%s: dsp-version: %c%c%c\n", __func__,
get_dsp_version[4], get_dsp_version[5], get_dsp_version[6]); get_dsp_version[4], get_dsp_version[5], get_dsp_version[6]);
return 0; return 0;
} }
...@@ -476,7 +476,7 @@ static int ttusb_send_diseqc(struct dvb_frontend* fe, ...@@ -476,7 +476,7 @@ static int ttusb_send_diseqc(struct dvb_frontend* fe,
/* Diseqc */ /* Diseqc */
if ((err = ttusb_cmd(ttusb, b, 4 + b[3], 0))) { if ((err = ttusb_cmd(ttusb, b, 4 + b[3], 0))) {
dprintk("%s: usb_bulk_msg() failed, return value %i!\n", dprintk("%s: usb_bulk_msg() failed, return value %i!\n",
__FUNCTION__, err); __func__, err);
} }
return err; return err;
...@@ -494,7 +494,7 @@ static int ttusb_update_lnb(struct ttusb *ttusb) ...@@ -494,7 +494,7 @@ static int ttusb_update_lnb(struct ttusb *ttusb)
/* SetLNB */ /* SetLNB */
if ((err = ttusb_cmd(ttusb, b, sizeof(b), 0))) { if ((err = ttusb_cmd(ttusb, b, sizeof(b), 0))) {
dprintk("%s: usb_bulk_msg() failed, return value %i!\n", dprintk("%s: usb_bulk_msg() failed, return value %i!\n",
__FUNCTION__, err); __func__, err);
} }
return err; return err;
...@@ -528,7 +528,7 @@ static void ttusb_set_led_freq(struct ttusb *ttusb, u8 freq) ...@@ -528,7 +528,7 @@ static void ttusb_set_led_freq(struct ttusb *ttusb, u8 freq)
err = ttusb_cmd(ttusb, b, sizeof(b), 0); err = ttusb_cmd(ttusb, b, sizeof(b), 0);
if (err) { if (err) {
dprintk("%s: usb_bulk_msg() failed, return value %i!\n", dprintk("%s: usb_bulk_msg() failed, return value %i!\n",
__FUNCTION__, err); __func__, err);
} }
} }
#endif #endif
...@@ -554,7 +554,7 @@ static void ttusb_process_muxpack(struct ttusb *ttusb, const u8 * muxpack, ...@@ -554,7 +554,7 @@ static void ttusb_process_muxpack(struct ttusb *ttusb, const u8 * muxpack,
csum ^= le16_to_cpup((u16 *) (muxpack + i)); csum ^= le16_to_cpup((u16 *) (muxpack + i));
if (csum) { if (csum) {
printk("%s: muxpack with incorrect checksum, ignoring\n", printk("%s: muxpack with incorrect checksum, ignoring\n",
__FUNCTION__); __func__);
numinvalid++; numinvalid++;
return; return;
} }
...@@ -563,7 +563,7 @@ static void ttusb_process_muxpack(struct ttusb *ttusb, const u8 * muxpack, ...@@ -563,7 +563,7 @@ static void ttusb_process_muxpack(struct ttusb *ttusb, const u8 * muxpack,
cc &= 0x7FFF; cc &= 0x7FFF;
if ((cc != ttusb->cc) && (ttusb->cc != -1)) if ((cc != ttusb->cc) && (ttusb->cc != -1))
printk("%s: cc discontinuity (%d frames missing)\n", printk("%s: cc discontinuity (%d frames missing)\n",
__FUNCTION__, (cc - ttusb->cc) & 0x7FFF); __func__, (cc - ttusb->cc) & 0x7FFF);
ttusb->cc = (cc + 1) & 0x7FFF; ttusb->cc = (cc + 1) & 0x7FFF;
if (muxpack[0] & 0x80) { if (muxpack[0] & 0x80) {
#ifdef TTUSB_HWSECTIONS #ifdef TTUSB_HWSECTIONS
...@@ -613,7 +613,7 @@ static void ttusb_process_frame(struct ttusb *ttusb, u8 * data, int len) ...@@ -613,7 +613,7 @@ static void ttusb_process_frame(struct ttusb *ttusb, u8 * data, int len)
int maxwork = 1024; int maxwork = 1024;
while (len) { while (len) {
if (!(maxwork--)) { if (!(maxwork--)) {
printk("%s: too much work\n", __FUNCTION__); printk("%s: too much work\n", __func__);
break; break;
} }
...@@ -632,7 +632,7 @@ static void ttusb_process_frame(struct ttusb *ttusb, u8 * data, int len) ...@@ -632,7 +632,7 @@ static void ttusb_process_frame(struct ttusb *ttusb, u8 * data, int len)
#else #else
if (ttusb->insync) { if (ttusb->insync) {
printk("%s: lost sync.\n", printk("%s: lost sync.\n",
__FUNCTION__); __func__);
ttusb->insync = 0; ttusb->insync = 0;
} }
#endif #endif
...@@ -691,7 +691,7 @@ static void ttusb_process_frame(struct ttusb *ttusb, u8 * data, int len) ...@@ -691,7 +691,7 @@ static void ttusb_process_frame(struct ttusb *ttusb, u8 * data, int len)
else { else {
dprintk dprintk
("%s: invalid state: first byte is %x\n", ("%s: invalid state: first byte is %x\n",
__FUNCTION__, __func__,
ttusb->muxpack[0]); ttusb->muxpack[0]);
ttusb->mux_state = 0; ttusb->mux_state = 0;
} }
...@@ -740,7 +740,7 @@ static void ttusb_iso_irq(struct urb *urb) ...@@ -740,7 +740,7 @@ static void ttusb_iso_irq(struct urb *urb)
#if 0 #if 0
printk("%s: status %d, errcount == %d, length == %i\n", printk("%s: status %d, errcount == %d, length == %i\n",
__FUNCTION__, __func__,
urb->status, urb->error_count, urb->actual_length); urb->status, urb->error_count, urb->actual_length);
#endif #endif
...@@ -833,7 +833,7 @@ static int ttusb_start_iso_xfer(struct ttusb *ttusb) ...@@ -833,7 +833,7 @@ static int ttusb_start_iso_xfer(struct ttusb *ttusb)
int i, j, err, buffer_offset = 0; int i, j, err, buffer_offset = 0;
if (ttusb->iso_streaming) { if (ttusb->iso_streaming) {
printk("%s: iso xfer already running!\n", __FUNCTION__); printk("%s: iso xfer already running!\n", __func__);
return 0; return 0;
} }
...@@ -869,7 +869,7 @@ static int ttusb_start_iso_xfer(struct ttusb *ttusb) ...@@ -869,7 +869,7 @@ static int ttusb_start_iso_xfer(struct ttusb *ttusb)
ttusb_stop_iso_xfer(ttusb); ttusb_stop_iso_xfer(ttusb);
printk printk
("%s: failed urb submission (%i: err = %i)!\n", ("%s: failed urb submission (%i: err = %i)!\n",
__FUNCTION__, i, err); __func__, i, err);
return err; return err;
} }
} }
...@@ -1643,7 +1643,7 @@ static int ttusb_probe(struct usb_interface *intf, const struct usb_device_id *i ...@@ -1643,7 +1643,7 @@ static int ttusb_probe(struct usb_interface *intf, const struct usb_device_id *i
struct ttusb *ttusb; struct ttusb *ttusb;
int result; int result;
dprintk("%s: TTUSB DVB connected\n", __FUNCTION__); dprintk("%s: TTUSB DVB connected\n", __func__);
udev = interface_to_usbdev(intf); udev = interface_to_usbdev(intf);
...@@ -1773,7 +1773,7 @@ static void ttusb_disconnect(struct usb_interface *intf) ...@@ -1773,7 +1773,7 @@ static void ttusb_disconnect(struct usb_interface *intf)
kfree(ttusb); kfree(ttusb);
dprintk("%s: TTUSB DVB disconnected\n", __FUNCTION__); dprintk("%s: TTUSB DVB disconnected\n", __func__);
} }
static struct usb_device_id ttusb_table[] = { static struct usb_device_id ttusb_table[] = {
......
Markdown is supported
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