@@ -61,7 +61,7 @@ store_virtualpkg(struct xbps_handle *xhp, const char *path, size_t line, char *v
6161 */
6262 p = strchr (val , ':' );
6363 if (p == NULL || p [1 ] == '\0' ) {
64- xbps_dbg_printf (xhp , "%s: ignoring invalid "
64+ xbps_dbg_printf ("%s: ignoring invalid "
6565 "virtualpkg option at line %zu\n" , path , line );
6666 return 0 ;
6767 }
@@ -71,7 +71,7 @@ store_virtualpkg(struct xbps_handle *xhp, const char *path, size_t line, char *v
7171 return - errno ;
7272 if (!xbps_dictionary_set_cstring (xhp -> vpkgd_conf , val , p ))
7373 return - errno ;
74- xbps_dbg_printf (xhp , "%s: added virtualpkg %s for %s\n" , path , val , p );
74+ xbps_dbg_printf ("%s: added virtualpkg %s for %s\n" , path , val , p );
7575 return 1 ;
7676}
7777
@@ -95,7 +95,7 @@ store_preserved_file(struct xbps_handle *xhp, const char *file)
9595 if (xbps_match_string_in_array (xhp -> preserved_files , file ))
9696 goto out ;
9797 xbps_array_add_cstring (xhp -> preserved_files , file );
98- xbps_dbg_printf (xhp , "Added preserved file: %s\n" , file );
98+ xbps_dbg_printf ("Added preserved file: %s\n" , file );
9999 goto out ;
100100 } else if (rv != 0 ) {
101101 goto out ;
@@ -109,7 +109,7 @@ store_preserved_file(struct xbps_handle *xhp, const char *file)
109109 assert (p );
110110 xbps_strlcpy (p , globbuf .gl_pathv [i ] + strlen (xhp -> rootdir ), len );
111111 xbps_array_add_cstring (xhp -> preserved_files , p );
112- xbps_dbg_printf (xhp , "Added preserved file: %s (expanded from %s)\n" , p , file );
112+ xbps_dbg_printf ("Added preserved file: %s (expanded from %s)\n" , p , file );
113113 free (p );
114114 }
115115out :
@@ -134,7 +134,7 @@ store_ignored_pkg(struct xbps_handle *xhp, const char *pkgname)
134134 assert (xhp -> ignored_pkgs );
135135 }
136136 xbps_array_add_cstring (xhp -> ignored_pkgs , pkgname );
137- xbps_dbg_printf (xhp , "Added ignored package: %s\n" , pkgname );
137+ xbps_dbg_printf ("Added ignored package: %s\n" , pkgname );
138138}
139139
140140static void
@@ -147,7 +147,7 @@ store_noextract(struct xbps_handle *xhp, const char *value)
147147 assert (xhp -> noextract );
148148 }
149149 xbps_array_add_cstring (xhp -> noextract , value );
150- xbps_dbg_printf (xhp , "Added noextract pattern: %s\n" , value );
150+ xbps_dbg_printf ("Added noextract pattern: %s\n" , value );
151151}
152152
153153enum {
@@ -288,7 +288,7 @@ parse_file(struct xbps_handle *xhp, const char *path, bool nested)
288288 return rv ;
289289 }
290290
291- xbps_dbg_printf (xhp , "Parsing configuration file: %s\n" , path );
291+ xbps_dbg_printf ("Parsing configuration file: %s\n" , path );
292292
293293 while ((rd = getline (& line , & len , fp )) != -1 ) {
294294 char * val = NULL ;
@@ -310,7 +310,7 @@ parse_file(struct xbps_handle *xhp, const char *path, bool nested)
310310
311311 switch (parse_option (line , rd , & val , & vallen )) {
312312 case KEY_ERROR :
313- xbps_dbg_printf (xhp , "%s: ignoring invalid option at "
313+ xbps_dbg_printf ("%s: ignoring invalid option at "
314314 "line %zu\n" , path , nlines );
315315 continue ;
316316 case KEY_ROOTDIR :
@@ -320,7 +320,7 @@ parse_file(struct xbps_handle *xhp, const char *path, bool nested)
320320 rv = ENOMEM ;
321321 break ;
322322 }
323- xbps_dbg_printf (xhp , "%s: rootdir set to %s\n" , path , val );
323+ xbps_dbg_printf ("%s: rootdir set to %s\n" , path , val );
324324 break ;
325325 case KEY_CACHEDIR :
326326 size = sizeof xhp -> cachedir ;
@@ -329,7 +329,7 @@ parse_file(struct xbps_handle *xhp, const char *path, bool nested)
329329 rv = ENOMEM ;
330330 break ;
331331 }
332- xbps_dbg_printf (xhp , "%s: cachedir set to %s\n" , path , val );
332+ xbps_dbg_printf ("%s: cachedir set to %s\n" , path , val );
333333 break ;
334334 case KEY_ARCHITECTURE :
335335 size = sizeof xhp -> native_arch ;
@@ -338,21 +338,21 @@ parse_file(struct xbps_handle *xhp, const char *path, bool nested)
338338 rv = ENOMEM ;
339339 break ;
340340 }
341- xbps_dbg_printf (xhp , "%s: native architecture set to %s\n" , path ,
341+ xbps_dbg_printf ("%s: native architecture set to %s\n" , path ,
342342 val );
343343 break ;
344344 case KEY_SYSLOG :
345345 if (strcasecmp (val , "true" ) == 0 ) {
346346 xhp -> flags &= ~XBPS_FLAG_DISABLE_SYSLOG ;
347- xbps_dbg_printf (xhp , "%s: syslog enabled\n" , path );
347+ xbps_dbg_printf ("%s: syslog enabled\n" , path );
348348 } else {
349349 xhp -> flags |= XBPS_FLAG_DISABLE_SYSLOG ;
350- xbps_dbg_printf (xhp , "%s: syslog disabled\n" , path );
350+ xbps_dbg_printf ("%s: syslog disabled\n" , path );
351351 }
352352 break ;
353353 case KEY_REPOSITORY :
354354 if (store_repo (xhp , val ))
355- xbps_dbg_printf (xhp , "%s: added repository %s\n" , path , val );
355+ xbps_dbg_printf ("%s: added repository %s\n" , path , val );
356356 break ;
357357 case KEY_VIRTUALPKG :
358358 rv = store_virtualpkg (xhp , path , nlines , val );
@@ -368,19 +368,19 @@ parse_file(struct xbps_handle *xhp, const char *path, bool nested)
368368 case KEY_KEEPCONF :
369369 if (strcasecmp (val , "true" ) == 0 ) {
370370 xhp -> flags |= XBPS_FLAG_KEEP_CONFIG ;
371- xbps_dbg_printf (xhp , "%s: config preservation enabled\n" , path );
371+ xbps_dbg_printf ("%s: config preservation enabled\n" , path );
372372 } else {
373373 xhp -> flags &= ~XBPS_FLAG_KEEP_CONFIG ;
374- xbps_dbg_printf (xhp , "%s: config preservation disabled\n" , path );
374+ xbps_dbg_printf ("%s: config preservation disabled\n" , path );
375375 }
376376 break ;
377377 case KEY_BESTMATCHING :
378378 if (strcasecmp (val , "true" ) == 0 ) {
379379 xhp -> flags |= XBPS_FLAG_BESTMATCH ;
380- xbps_dbg_printf (xhp , "%s: pkg best matching enabled\n" , path );
380+ xbps_dbg_printf ("%s: pkg best matching enabled\n" , path );
381381 } else {
382382 xhp -> flags &= ~XBPS_FLAG_BESTMATCH ;
383- xbps_dbg_printf (xhp , "%s: pkg best matching disabled\n" , path );
383+ xbps_dbg_printf ("%s: pkg best matching disabled\n" , path );
384384 }
385385 break ;
386386 case KEY_IGNOREPKG :
@@ -392,7 +392,7 @@ parse_file(struct xbps_handle *xhp, const char *path, bool nested)
392392 case KEY_INCLUDE :
393393 /* Avoid double-nested parsing, only allow it once */
394394 if (nested ) {
395- xbps_dbg_printf (xhp , "%s: ignoring nested include\n" , path );
395+ xbps_dbg_printf ("%s: ignoring nested include\n" , path );
396396 continue ;
397397 }
398398 dir = strdup (path );
@@ -418,12 +418,12 @@ xbps_conf_init(struct xbps_handle *xhp)
418418 assert (seen );
419419
420420 if (* xhp -> confdir ) {
421- xbps_dbg_printf (xhp , "Processing configuration directory: %s\n" , xhp -> confdir );
421+ xbps_dbg_printf ("Processing configuration directory: %s\n" , xhp -> confdir );
422422 if ((rv = parse_files_glob (xhp , seen , xhp -> confdir , "*.conf" , false)))
423423 goto out ;
424424 }
425425 if (* xhp -> sysconfdir ) {
426- xbps_dbg_printf (xhp , "Processing system configuration directory: %s\n" , xhp -> sysconfdir );
426+ xbps_dbg_printf ("Processing system configuration directory: %s\n" , xhp -> sysconfdir );
427427 if ((rv = parse_files_glob (xhp , seen , xhp -> sysconfdir , "*.conf" , false)))
428428 goto out ;
429429 }
0 commit comments