Fix logging in gobi_gsm_modem.cc.

Implement a version of TrimWhitespaceASCII() and pull in a prototype
for sscanf() directly from stdio.h, so that we can avoid including
<base/string_util.h>. That header pulls in <base/string_util_posix.h>,
which pulls in <base/logging.h> (for DCHECK). The presence of the
LOG() macros from <base/logging.h> prevents the <glog/logging.h> LOG()
macros from functioning properly, and thus log output from
gobi_gsm_modem.cc was disappearing (going to stderr rather than
syslog, I think).

TEST=Run cromo on a modem set to 'Generic UMTS' and search /var/log/messages for gobi_gsm_modem.cc
BUG=None

Change-Id: Ib1779c1118117b9753fc037d34f33f5ce977a876
Reviewed-on: https://gerrit-int.chromium.org/6304
Reviewed-by: Jason Glasgow <jglasgow@google.com>
Tested-by: Nathan J. Williams <njw@google.com>
1 file changed