Skip to content

Commit 979b088

Browse files
lylezhu2012kartben
authored andcommitted
Bluetooth: Classic: Shell: Change acronyms to uppercase
Change `ag` of print message to `AG`. Signed-off-by: Lyle Zhu <[email protected]>
1 parent 3f7224a commit 979b088

File tree

1 file changed

+17
-17
lines changed
  • subsys/bluetooth/host/classic/shell

1 file changed

+17
-17
lines changed

subsys/bluetooth/host/classic/shell/hfp.c

+17-17
Original file line numberDiff line numberDiff line change
@@ -1000,12 +1000,12 @@ static void ag_connected(struct bt_conn *conn, struct bt_hfp_ag *ag)
10001000
bt_shell_warn("The conn %p is not aligned with ACL conn %p", conn, default_conn);
10011001
}
10021002
hfp_ag = ag;
1003-
bt_shell_print("ag connected");
1003+
bt_shell_print("AG connected");
10041004
}
10051005

10061006
static void ag_disconnected(struct bt_hfp_ag *ag)
10071007
{
1008-
bt_shell_print("ag disconnected");
1008+
bt_shell_print("AG disconnected");
10091009
}
10101010

10111011
static void ag_sco_connected(struct bt_hfp_ag *ag, struct bt_conn *sco_conn)
@@ -1040,7 +1040,7 @@ static int ag_memory_dial(struct bt_hfp_ag *ag, const char *location, char **num
10401040
return -ENOTSUP;
10411041
}
10421042

1043-
bt_shell_print("ag memory dial");
1043+
bt_shell_print("AG memory dial");
10441044

10451045
*number = phone;
10461046

@@ -1051,7 +1051,7 @@ static int ag_number_call(struct bt_hfp_ag *ag, const char *number)
10511051
{
10521052
static char *phone = "123456789";
10531053

1054-
bt_shell_print("ag number call");
1054+
bt_shell_print("AG number call");
10551055

10561056
if (strcmp(number, phone)) {
10571057
return -ENOTSUP;
@@ -1062,71 +1062,71 @@ static int ag_number_call(struct bt_hfp_ag *ag, const char *number)
10621062

10631063
static void ag_outgoing(struct bt_hfp_ag *ag, struct bt_hfp_ag_call *call, const char *number)
10641064
{
1065-
bt_shell_print("ag outgoing call %p, number %s", call, number);
1065+
bt_shell_print("AG outgoing call %p, number %s", call, number);
10661066
ag_add_a_call(call);
10671067
}
10681068

10691069
static void ag_incoming(struct bt_hfp_ag *ag, struct bt_hfp_ag_call *call, const char *number)
10701070
{
1071-
bt_shell_print("ag incoming call %p, number %s", call, number);
1071+
bt_shell_print("AG incoming call %p, number %s", call, number);
10721072
ag_add_a_call(call);
10731073
}
10741074

10751075
static void ag_incoming_held(struct bt_hfp_ag_call *call)
10761076
{
1077-
bt_shell_print("ag incoming call %p is held", call);
1077+
bt_shell_print("AG incoming call %p is held", call);
10781078
}
10791079

10801080
static void ag_ringing(struct bt_hfp_ag_call *call, bool in_band)
10811081
{
1082-
bt_shell_print("ag call %p start ringing mode %d", call, in_band);
1082+
bt_shell_print("AG call %p start ringing mode %d", call, in_band);
10831083
}
10841084

10851085
static void ag_accept(struct bt_hfp_ag_call *call)
10861086
{
1087-
bt_shell_print("ag call %p accept", call);
1087+
bt_shell_print("AG call %p accept", call);
10881088
}
10891089

10901090
static void ag_held(struct bt_hfp_ag_call *call)
10911091
{
1092-
bt_shell_print("ag call %p held", call);
1092+
bt_shell_print("AG call %p held", call);
10931093
}
10941094

10951095
static void ag_retrieve(struct bt_hfp_ag_call *call)
10961096
{
1097-
bt_shell_print("ag call %p retrieved", call);
1097+
bt_shell_print("AG call %p retrieved", call);
10981098
}
10991099

11001100
static void ag_reject(struct bt_hfp_ag_call *call)
11011101
{
1102-
bt_shell_print("ag call %p reject", call);
1102+
bt_shell_print("AG call %p reject", call);
11031103
ag_remove_a_call(call);
11041104
}
11051105

11061106
static void ag_terminate(struct bt_hfp_ag_call *call)
11071107
{
1108-
bt_shell_print("ag call %p terminate", call);
1108+
bt_shell_print("AG call %p terminate", call);
11091109
ag_remove_a_call(call);
11101110
}
11111111

11121112
static void ag_codec(struct bt_hfp_ag *ag, uint32_t ids)
11131113
{
1114-
bt_shell_print("ag received codec id bit map %x", ids);
1114+
bt_shell_print("AG received codec id bit map %x", ids);
11151115
}
11161116

11171117
void ag_vgm(struct bt_hfp_ag *ag, uint8_t gain)
11181118
{
1119-
bt_shell_print("ag received vgm %d", gain);
1119+
bt_shell_print("AG received vgm %d", gain);
11201120
}
11211121

11221122
void ag_vgs(struct bt_hfp_ag *ag, uint8_t gain)
11231123
{
1124-
bt_shell_print("ag received vgs %d", gain);
1124+
bt_shell_print("AG received vgs %d", gain);
11251125
}
11261126

11271127
void ag_codec_negotiate(struct bt_hfp_ag *ag, int err)
11281128
{
1129-
bt_shell_print("ag codec negotiation result %d", err);
1129+
bt_shell_print("AG codec negotiation result %d", err);
11301130
}
11311131

11321132
void ag_audio_connect_req(struct bt_hfp_ag *ag)

0 commit comments

Comments
 (0)