diff --git a/apps/restconf/restconf_methods.c b/apps/restconf/restconf_methods.c index b1e05378..5aeded27 100644 --- a/apps/restconf/restconf_methods.c +++ b/apps/restconf/restconf_methods.c @@ -254,7 +254,7 @@ api_data_get2(clicon_handle h, else{ if (xpath_vec(xret, "%s", &xvec, &xlen, path) < 0) goto done; - clicon_debug(1, "%s: xpath:%s xlen:%d", __FUNCTION__, path, xlen); + clicon_debug(1, "%s: xpath:%s xlen:%d", __FUNCTION__, path, (int)xlen); if (use_xml){ for (i=0; ie_next; - clicon_debug(2, "%s timeout: %s[%x]", - __FUNCTION__, e->e_string, (int)e->e_arg); + clicon_debug(2, "%s timeout: %s[%lx]", + __FUNCTION__, e->e_string, (intptr_t)e->e_arg); if ((*e->e_fn)(0, e->e_arg) < 0){ free(e); goto err; @@ -331,8 +331,8 @@ event_loop(void) break; e_next = e->e_next; if(e->e_type == EVENT_FD && FD_ISSET(e->e_fd, &fdset)){ - clicon_debug(2, "%s: FD_ISSET: %s[%x]", - __FUNCTION__, e->e_string, (int)e->e_arg); + clicon_debug(2, "%s: FD_ISSET: %s[%lx]", + __FUNCTION__, e->e_string, (intptr_t)e->e_arg); if ((*e->e_fn)(e->e_fd, e->e_arg) < 0){ clicon_debug(1, "%s Error in: %s", __FUNCTION__, e->e_string); goto err;