OSDN Git Service

BandwidthController: fix format string bugs
authorNick Kralevich <nnk@google.com>
Thu, 23 Feb 2012 21:04:26 +0000 (13:04 -0800)
committerNick Kralevich <nnk@google.com>
Thu, 23 Feb 2012 22:50:29 +0000 (14:50 -0800)
commitc2b26cb83d9bf3f91e986625efcc40fc8eb79a13
treeb7e558b58713fd3d81c961d248000ca7adf20091
parent0a379691e04700b3b44948450b1e3db92ef2ec01
BandwidthController: fix format string bugs

In 876666947664c718a8d0cae9bbddb06cc91f912c, a new %s
was added to ALERT_IPT_TEMPLATE. Not all users of this string
were updated.

This change modifies ALERT_IPT_TEMPLATE to be a #define, which
allows gcc's format string detection work.

Add -Werror=format to error out on any string format warning.

Testing: Code compiles. I don't know how to test this change
properly.

Bug: 5948299
Change-Id: I0ec307972e6bf50abd8ba099166c22069a6c6580
Android.mk
BandwidthController.cpp
BandwidthController.h