summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
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)
116inline void dump_debug_buffer(const char *file, const char *data, const int length) 116inline void dump_debug_buffer(const char *file, const char *data, const int length)
117{ 117{
118#ifndef STRIP_DEBUG_CODE 118#ifndef STRIP_DEBUG_CODE
119
120 /* run the real fprintf */ 119 /* run the real fprintf */
121 if (toto_debug) { 120 if (toto_debug) {
122 FILE *my_ssl_packet = fopen(file, "w+"); 121 FILE *my_ssl_packet = fopen(file, "w+");
123 fwrite(data, 1, length, my_ssl_packet); 122 fwrite(data, 1, length, my_ssl_packet);
124 fflush(my_ssl_packet); 123 fflush(my_ssl_packet);
125 fprintf(stderr, "Wrote SSL packet to drive, too.\n"); 124 fprintf(stderr, "%s: Wrote SSL packet to drive, too.\n", __func__);
126 fclose(my_ssl_packet); 125 fclose(my_ssl_packet);
127 } 126 }
128#endif 127#endif