summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-07-24 22:21:53 +0200
committerGravatar Martin Szulecki2009-07-24 22:21:53 +0200
commit83529098fbf4b39b2643a7c0bf39828247d11f9a (patch)
tree942597468fd98de67dc161778c951509808db9f4 /src/utils.c
parent15e2c165ac63e225e3fbfc531da5c1f19fede569 (diff)
downloadlibimobiledevice-83529098fbf4b39b2643a7c0bf39828247d11f9a.tar.gz
libimobiledevice-83529098fbf4b39b2643a7c0bf39828247d11f9a.tar.bz2
Improve debug output messages by using __func__ everywhere and adjust wording
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c
index 121bc55..6535a07 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -116,13 +116,12 @@ inline void log_debug_buffer(const char *data, const int length)
inline void dump_debug_buffer(const char *file, const char *data, const int length)
{
#ifndef STRIP_DEBUG_CODE
-
/* run the real fprintf */
if (toto_debug) {
FILE *my_ssl_packet = fopen(file, "w+");
fwrite(data, 1, length, my_ssl_packet);
fflush(my_ssl_packet);
- fprintf(stderr, "Wrote SSL packet to drive, too.\n");
+ fprintf(stderr, "%s: Wrote SSL packet to drive, too.\n", __func__);
fclose(my_ssl_packet);
}
#endif