Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 61c134fe authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Fix build warnings in logs

packages/modules/Bluetooth/system/bta/le_audio/client.cc:3840:13: warning: format specifies type 'unsigned short' but the argument has type 'LeAudioContextType' [-Wformat]
 3838 |     dprintf(fd, "  configuration: %s  (0x%08hx)\n",
      |                                          ~~~~~
 3839 |             bluetooth::common::ToString(configuration_context_type_).c_str(),
 3840 |             configuration_context_type_);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |             static_cast<unsigned short>( )
packages/modules/Bluetooth/system/bta/le_audio/client.cc:3850:15: warning: format specifies type 'int' but the argument has type 'value_type' (aka 'bluetooth::le_audio::UnicastMonitorModeStatus') [-Wformat]
 3849 |       dprintf(fd, "  Local sink notified state: %d\n",
      |                                                 ~~
 3850 |               sink_monitor_notified_status_.value());
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               static_cast<int>(                    )

Bug: 331775328
Test: mmm packages/modules/Bluetooth
Flag: Exempt, trivial fix, log only

Change-Id: I72721192366eb36e8702db32929432093798f150
parent 1cfd65e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment