Change boolean options to bool instead of int
[deliverable/binutils-gdb.git] / gdb / guile / scm-utils.c
index c514c829e6372451bcba04fb3d7cc4f10f6cdad3..2710b110c08662132759445ea05b2bbfc1fa2441 100644 (file)
@@ -1,6 +1,6 @@
 /* General utility routines for GDB/Scheme code.
 
-   Copyright (C) 2014-2018 Free Software Foundation, Inc.
+   Copyright (C) 2014-2019 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -79,13 +79,11 @@ void
 gdbscm_printf (SCM port, const char *format, ...)
 {
   va_list args;
-  char *string;
 
   va_start (args, format);
-  string = xstrvprintf (format, args);
+  std::string string = string_vprintf (format, args);
   va_end (args);
-  scm_puts (string, port);
-  xfree (string);
+  scm_puts (string.c_str (), port);
 }
 
 /* Utility for calling from gdb to "display" an SCM object.  */
This page took 0.02762 seconds and 4 git commands to generate.