diff options
| author | 2009-07-24 22:21:53 +0200 | |
|---|---|---|
| committer | 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) | |||
| 102 | key_file = g_key_file_new(); | 102 | key_file = g_key_file_new(); |
| 103 | 103 | ||
| 104 | /* Store in config file */ | 104 | /* Store in config file */ |
| 105 | log_debug_msg("init_config_file(): setting hostID to %s\n", host_id); | 105 | log_debug_msg("%s: setting hostID to %s\n", __func__, host_id); |
| 106 | g_key_file_set_value(key_file, "Global", "HostID", host_id); | 106 | g_key_file_set_value(key_file, "Global", "HostID", host_id); |
| 107 | 107 | ||
| 108 | /* Write config file on disk */ | 108 | /* Write config file on disk */ |
| @@ -152,7 +152,7 @@ char *get_host_id(void) | |||
| 152 | write_host_id(host_id); | 152 | write_host_id(host_id); |
| 153 | } | 153 | } |
| 154 | 154 | ||
| 155 | log_debug_msg("get_host_id(): Using %s as HostID\n", host_id); | 155 | log_debug_msg("%s: Using %s as HostID\n", __func__, host_id); |
| 156 | return host_id; | 156 | return host_id; |
| 157 | } | 157 | } |
| 158 | 158 | ||
| @@ -275,7 +275,6 @@ static iphone_error_t gen_keys_and_cert(void) | |||
| 275 | gnutls_x509_crt_set_expiration_time(root_cert, time(NULL) + (60 * 60 * 24 * 365 * 10)); | 275 | gnutls_x509_crt_set_expiration_time(root_cert, time(NULL) + (60 * 60 * 24 * 365 * 10)); |
| 276 | gnutls_x509_crt_sign(root_cert, root_cert, root_privkey); | 276 | gnutls_x509_crt_sign(root_cert, root_cert, root_privkey); |
| 277 | 277 | ||
| 278 | |||
| 279 | gnutls_x509_crt_set_key(host_cert, host_privkey); | 278 | gnutls_x509_crt_set_key(host_cert, host_privkey); |
| 280 | gnutls_x509_crt_set_serial(host_cert, "\x00", 1); | 279 | gnutls_x509_crt_set_serial(host_cert, "\x00", 1); |
| 281 | gnutls_x509_crt_set_version(host_cert, 3); | 280 | gnutls_x509_crt_set_version(host_cert, 3); |
