cras-config: Fix Wformat warnings reported by clang.

Fix a bunch of warnings reported by clang because of incorrect
format specifiers.

cras-config/ error: format specifies type 'unsigned int'
but the argument has type 'size_t' (aka 'unsigned long') [-Werror,-Wformat]
cras-config/ error: format specifies type 'double'
but the argument has type 'bool'  [-Werror,-Wformat]

And various other warnings.

TEST=emerge-amd64-generic webrtc-apm works.

Change-Id: Ied98c83b5abf58ccd580307a55d825aacacdc833
Commit-Ready: Manoj Gupta <>
Tested-by: Manoj Gupta <>
Reviewed-by: Hsinyu Chao <>
1 file changed
tree: 9b69bc16ec7eba1231606f7df0845c59830d12f2
  1. absl/
  2. api/
  3. audio/
  4. common_audio/
  5. cras-config/
  6. modules/
  7. rtc_base/
  8. script/
  9. system_wrappers/
  10. third_party/
  12. common_types.h
  13. libwebrtc_apm.pc.template
  14. Makefile
  17. typedefs.h
  19. webrtc_apm.h


APM is the audio processing module of WebRTC project in charge of effects like echo cancellation, noise suppression, etc. The purpose of this project is to build a standalone library for Chrome OS system side audio processing.

Files content

  • scripts to copy over folders and files from upstream WebRTC project for APM and its dependencies.
  • Copied files from upstream WebRTC project. For example: common_audio, modules, rtc_base and system_wrappers.
  • C wrappers to access APM functions.
  • common-mk based makefiles to build shared library


To update this package to latest upstream WebRC:

  • Run ./script/ path/to/webrtc-checkout/src .
  • emerge webrtc-apm to see if anything breaks.
  • If emerge success, then we're good.
  • Otherwise look into the emerge failure, and then possibly:
    • Update to copy more files if upstream directory structure changes.
    • Update makefiles if upstream build files has changed.
    • Update webrtc-apm ebuild file if dependencies changed.
  • Create a new commit