diff options
author | Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com> | 2011-10-18 14:05:05 +0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-10-20 12:47:58 -0500 |
commit | 1f7e51d2d88eddc288aa51262dc795c94bc82220 (patch) | |
tree | b9b22a48aa98957e0f941da3ab2175f3582c57e5 /tools | |
parent | 975c9167896d23c40e85f64b532446df6cf7cb24 (diff) | |
download | ofono-1f7e51d2d88eddc288aa51262dc795c94bc82220.tar.bz2 |
lookup-apn: Minor style issues
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lookup-apn.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/tools/lookup-apn.c b/tools/lookup-apn.c index f2727d30..b833b6c7 100644 --- a/tools/lookup-apn.c +++ b/tools/lookup-apn.c @@ -23,7 +23,6 @@ #include <config.h> #endif -#include <stdio.h> #include <stdlib.h> #include <glib.h> @@ -41,7 +40,7 @@ static void lookup_apn(const char *match_mcc, const char *match_mnc, GSList *apns; GError *error = NULL; - printf("Searching for info for network: %s%s\n", match_mcc, match_mnc); + g_print("Searching for info for network: %s%s\n", match_mcc, match_mnc); apns = mbpi_lookup(match_mcc, match_mnc, allow_duplicates, &error); @@ -55,16 +54,16 @@ static void lookup_apn(const char *match_mcc, const char *match_mnc, } for (l = apns; l; l = l->next) { - struct ofono_gprs_provision_data *apn = l->data; + struct ofono_gprs_provision_data *ap = l->data; - printf("\n"); - printf("Name: %s\n", apn->name); - printf("APN: %s\n", apn->apn); - printf("Type: %s\n", mbpi_ap_type(apn->type)); - printf("Username: %s\n", apn->username); - printf("Password: %s\n", apn->password); + g_print("\n"); + g_print("Name: %s\n", ap->name); + g_print("APN: %s\n", ap->apn); + g_print("Type: %s\n", mbpi_ap_type(ap->type)); + g_print("Username: %s\n", ap->username); + g_print("Password: %s\n", ap->password); - mbpi_ap_free(apn); + mbpi_ap_free(ap); } g_slist_free(apns); @@ -101,12 +100,12 @@ int main(int argc, char **argv) g_option_context_free(context); if (option_version == TRUE) { - printf("%s\n", VERSION); + g_print("%s\n", VERSION); exit(0); } if (argc < 2) { - fprintf(stderr, "Missing parameters\n"); + g_printerr("Missing parameters\n"); exit(1); } |