diff options
| author | 2010-01-12 19:09:36 +0100 | |
|---|---|---|
| committer | 2010-01-12 19:09:36 +0100 | |
| commit | 342f4e929888c0aaa088e39fb98a74957bf45fa7 (patch) | |
| tree | 905bafb1b353b8ac21e3fb1f9c773d218a5c878e /src/userpref.c | |
| parent | bf3dc421b2b5ccfe2fcd3cd4ec1ef90f39599600 (diff) | |
| download | libimobiledevice-342f4e929888c0aaa088e39fb98a74957bf45fa7.tar.gz libimobiledevice-342f4e929888c0aaa088e39fb98a74957bf45fa7.tar.bz2 | |
Refactor and unify internal debug system for ease of use and verbosity
This introduces a new debug_info macro which automatically prints
the calling function, file and line number information instead of
having that information passed to every old log_debug_msg call.
Diffstat (limited to 'src/userpref.c')
| -rw-r--r-- | src/userpref.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userpref.c b/src/userpref.c index c677fda..6eff534 100644 --- a/src/userpref.c +++ b/src/userpref.c | |||
| @@ -106,7 +106,7 @@ static int userpref_set_host_id(const char *host_id) | |||
| 106 | key_file = g_key_file_new(); | 106 | key_file = g_key_file_new(); |
| 107 | 107 | ||
| 108 | /* Store in config file */ | 108 | /* Store in config file */ |
| 109 | log_debug_msg("%s: setting hostID to %s\n", __func__, host_id); | 109 | debug_info("setting hostID to %s", host_id); |
| 110 | g_key_file_set_value(key_file, "Global", "HostID", host_id); | 110 | g_key_file_set_value(key_file, "Global", "HostID", host_id); |
| 111 | 111 | ||
| 112 | /* Write config file on disk */ | 112 | /* Write config file on disk */ |
| @@ -155,7 +155,7 @@ void userpref_get_host_id(char **host_id) | |||
| 155 | userpref_set_host_id(*host_id); | 155 | userpref_set_host_id(*host_id); |
| 156 | } | 156 | } |
| 157 | 157 | ||
| 158 | log_debug_msg("%s: Using %s as HostID\n", __func__, *host_id); | 158 | debug_info("Using %s as HostID", *host_id); |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | /** Determines whether this iPhone has been connected to this system before. | 161 | /** Determines whether this iPhone has been connected to this system before. |
