Warn when (potentially) invalid input encountered

This commit is contained in:
Denis Kenzior 2009-08-12 19:47:22 -05:00
parent b1d0bda4b3
commit d812ff8534
1 changed files with 10 additions and 0 deletions

View File

@ -165,6 +165,16 @@ static void at_cpbr_notify(GAtResult *result, gpointer user_data)
char *tel_uri_utf8 = NULL;
text_utf8 = ucs2_to_utf8(text);
if (text_utf8 == NULL)
ofono_warn("Name field conversion to UTF8"
" failed, this can indicate a"
" problem with modem"
" integration, as this field"
" is required by 27.007."
" Contents of name reported"
" by modem: %s", text);
if (group)
group_utf8 = ucs2_to_utf8(group);
if (secondtext)