mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Replace all occurances of __FUNCTION__ with __func__
Replace all occurs of __FUNCTION__ except for the check in checkpatch with the non GCC specific __func__. One line in hcd-musb.c was manually tweaked to pass checkpatch. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> [THH: Removed hunks related to pxa2xx_mmci.c (fixed already)] Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
7d8b00fa56
commit
a89f364ae8
63 changed files with 269 additions and 269 deletions
|
@ -468,7 +468,7 @@ static void l2cap_channel_close(struct l2cap_instance_s *l2cap,
|
|||
if (likely(ch)) {
|
||||
if (ch->remote_cid != source_cid) {
|
||||
fprintf(stderr, "%s: Ignoring a Disconnection Request with the "
|
||||
"invalid SCID %04x.\n", __FUNCTION__, source_cid);
|
||||
"invalid SCID %04x.\n", __func__, source_cid);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -791,7 +791,7 @@ static void l2cap_command(struct l2cap_instance_s *l2cap, int code, int id,
|
|||
/* TODO: do the IDs really have to be in sequence? */
|
||||
if (!id || (id != l2cap->last_id && id != l2cap->next_id)) {
|
||||
fprintf(stderr, "%s: out of sequence command packet ignored.\n",
|
||||
__FUNCTION__);
|
||||
__func__);
|
||||
return;
|
||||
}
|
||||
#else
|
||||
|
@ -814,7 +814,7 @@ static void l2cap_command(struct l2cap_instance_s *l2cap, int code, int id,
|
|||
|
||||
/* We never issue commands other than Command Reject currently. */
|
||||
fprintf(stderr, "%s: stray Command Reject (%02x, %04x) "
|
||||
"packet, ignoring.\n", __FUNCTION__, id,
|
||||
"packet, ignoring.\n", __func__, id,
|
||||
le16_to_cpu(((l2cap_cmd_rej *) params)->reason));
|
||||
break;
|
||||
|
||||
|
@ -837,7 +837,7 @@ static void l2cap_command(struct l2cap_instance_s *l2cap, int code, int id,
|
|||
|
||||
/* We never issue Connection Requests currently. TODO */
|
||||
fprintf(stderr, "%s: unexpected Connection Response (%02x) "
|
||||
"packet, ignoring.\n", __FUNCTION__, id);
|
||||
"packet, ignoring.\n", __func__, id);
|
||||
break;
|
||||
|
||||
case L2CAP_CONF_REQ:
|
||||
|
@ -866,7 +866,7 @@ static void l2cap_command(struct l2cap_instance_s *l2cap, int code, int id,
|
|||
((l2cap_conf_rsp *) params)->data,
|
||||
len - L2CAP_CONF_RSP_SIZE(0)))
|
||||
fprintf(stderr, "%s: unexpected Configure Response (%02x) "
|
||||
"packet, ignoring.\n", __FUNCTION__, id);
|
||||
"packet, ignoring.\n", __func__, id);
|
||||
break;
|
||||
|
||||
case L2CAP_DISCONN_REQ:
|
||||
|
@ -888,7 +888,7 @@ static void l2cap_command(struct l2cap_instance_s *l2cap, int code, int id,
|
|||
|
||||
/* We never issue Disconnection Requests currently. TODO */
|
||||
fprintf(stderr, "%s: unexpected Disconnection Response (%02x) "
|
||||
"packet, ignoring.\n", __FUNCTION__, id);
|
||||
"packet, ignoring.\n", __func__, id);
|
||||
break;
|
||||
|
||||
case L2CAP_ECHO_REQ:
|
||||
|
@ -898,7 +898,7 @@ static void l2cap_command(struct l2cap_instance_s *l2cap, int code, int id,
|
|||
case L2CAP_ECHO_RSP:
|
||||
/* We never issue Echo Requests currently. TODO */
|
||||
fprintf(stderr, "%s: unexpected Echo Response (%02x) "
|
||||
"packet, ignoring.\n", __FUNCTION__, id);
|
||||
"packet, ignoring.\n", __func__, id);
|
||||
break;
|
||||
|
||||
case L2CAP_INFO_REQ:
|
||||
|
@ -918,7 +918,7 @@ static void l2cap_command(struct l2cap_instance_s *l2cap, int code, int id,
|
|||
|
||||
/* We never issue Information Requests currently. TODO */
|
||||
fprintf(stderr, "%s: unexpected Information Response (%02x) "
|
||||
"packet, ignoring.\n", __FUNCTION__, id);
|
||||
"packet, ignoring.\n", __func__, id);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -1067,7 +1067,7 @@ static void l2cap_frame_in(struct l2cap_instance_s *l2cap,
|
|||
|
||||
if (unlikely(cid >= L2CAP_CID_MAX || !l2cap->cid[cid])) {
|
||||
fprintf(stderr, "%s: frame addressed to a non-existent L2CAP "
|
||||
"channel %04x received.\n", __FUNCTION__, cid);
|
||||
"channel %04x received.\n", __func__, cid);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1129,7 +1129,7 @@ static uint8_t *l2cap_bframe_out(struct bt_l2cap_conn_params_s *parm, int len)
|
|||
|
||||
if (len > chan->params.remote_mtu) {
|
||||
fprintf(stderr, "%s: B-Frame for CID %04x longer than %i octets.\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
chan->remote_cid, chan->params.remote_mtu);
|
||||
exit(-1);
|
||||
}
|
||||
|
@ -1354,7 +1354,7 @@ void bt_l2cap_psm_register(struct bt_l2cap_device_s *dev, int psm, int min_mtu,
|
|||
|
||||
if (new_psm) {
|
||||
fprintf(stderr, "%s: PSM %04x already registered for device `%s'.\n",
|
||||
__FUNCTION__, psm, dev->device.lmp_name);
|
||||
__func__, psm, dev->device.lmp_name);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue