static int debug_hex_ascii_format_fn(debug_info_t *id, struct debug_view *view,
                                     char *out_buf, const char *in_buf);
 static int debug_sprintf_format_fn(debug_info_t *id, struct debug_view *view,
-                                  char *out_buf, debug_sprintf_entry_t *curr_event);
+                                  char *out_buf, const char *inbuf);
 static void debug_areas_swap(debug_info_t *a, debug_info_t *b);
 static void debug_events_append(debug_info_t *dest, debug_info_t *src);
 
        "sprintf",
        NULL,
        &debug_dflt_header_fn,
-       (debug_format_proc_t *)&debug_sprintf_format_fn,
+       &debug_sprintf_format_fn,
        NULL,
        NULL
 };
 #define DEBUG_SPRINTF_MAX_ARGS 10
 
 static int debug_sprintf_format_fn(debug_info_t *id, struct debug_view *view,
-                                  char *out_buf, debug_sprintf_entry_t *curr_event)
+                                  char *out_buf, const char *inbuf)
 {
+       debug_sprintf_entry_t *curr_event = (debug_sprintf_entry_t *)inbuf;
        int num_longs, num_used_args = 0, i, rc = 0;
        int index[DEBUG_SPRINTF_MAX_ARGS];