Updated Serbian and Russian translations for various sub-directories
[binutils-gdb.git] / gdbsupport / common-debug.cc
index 38f6023f497578fded4b7c689f8c488b153f4ee1..39474c2c8603aea30573778375e49b10f0f2c46f 100644 (file)
@@ -1,6 +1,6 @@
 /* Debug printing functions.
 
-   Copyright (C) 2014-2020 Free Software Foundation, Inc.
+   Copyright (C) 2014-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -55,7 +55,11 @@ void
 debug_prefixed_vprintf (const char *module, const char *func,
                        const char *format, va_list args)
 {
-  debug_printf ("[%s] %s: ", module, func);
+  if (func != nullptr)
+    debug_printf ("%*s[%s] %s: ", debug_print_depth * 2, "", module, func);
+  else
+    debug_printf ("%*s[%s] ", debug_print_depth * 2, "", module);
+
   debug_vprintf (format, args);
   debug_printf ("\n");
 }