diff options
author | Martin Szulecki | 2009-07-24 22:21:53 +0200 |
---|---|---|
committer | Martin Szulecki | 2009-07-24 22:21:53 +0200 |
commit | 83529098fbf4b39b2643a7c0bf39828247d11f9a (patch) | |
tree | 942597468fd98de67dc161778c951509808db9f4 /src/userpref.c | |
parent | 15e2c165ac63e225e3fbfc531da5c1f19fede569 (diff) | |
download | libimobiledevice-83529098fbf4b39b2643a7c0bf39828247d11f9a.tar.gz libimobiledevice-83529098fbf4b39b2643a7c0bf39828247d11f9a.tar.bz2 |
Improve debug output messages by using __func__ everywhere and adjust wording
Diffstat (limited to 'src/userpref.c')
-rw-r--r-- | src/userpref.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/userpref.c b/src/userpref.c index 0e83133..f7ddaeb 100644 --- a/src/userpref.c +++ b/src/userpref.c @@ -102,7 +102,7 @@ static int write_host_id(char *host_id) key_file = g_key_file_new(); /* Store in config file */ - log_debug_msg("init_config_file(): setting hostID to %s\n", host_id); + log_debug_msg("%s: setting hostID to %s\n", __func__, host_id); g_key_file_set_value(key_file, "Global", "HostID", host_id); /* Write config file on disk */ @@ -152,7 +152,7 @@ char *get_host_id(void) write_host_id(host_id); } - log_debug_msg("get_host_id(): Using %s as HostID\n", host_id); + log_debug_msg("%s: Using %s as HostID\n", __func__, host_id); return host_id; } @@ -275,7 +275,6 @@ static iphone_error_t gen_keys_and_cert(void) gnutls_x509_crt_set_expiration_time(root_cert, time(NULL) + (60 * 60 * 24 * 365 * 10)); gnutls_x509_crt_sign(root_cert, root_cert, root_privkey); - gnutls_x509_crt_set_key(host_cert, host_privkey); gnutls_x509_crt_set_serial(host_cert, "\x00", 1); gnutls_x509_crt_set_version(host_cert, 3); |