From 54e75dc902cbe7878e35c2bc8f683745deb97db5 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 13 Jan 2023 16:41:40 +0100 Subject: Improve debug output of Fl_String - add newline (\n) before string output - remove quotes (') --- src/Fl_String.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fl_String.cxx b/src/Fl_String.cxx index 59f7ace64..7c82b0ec1 100644 --- a/src/Fl_String.cxx +++ b/src/Fl_String.cxx @@ -1,7 +1,7 @@ // // Basic Fl_String class for the Fast Light Tool Kit (FLTK). // -// Copyright 2021-2022 by Bill Spitzak and others. +// Copyright 2021-2023 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -154,7 +154,7 @@ void Fl_String::release() { */ void Fl_String::debug(const char *info) const { if (info) { - printf("Fl_String '%-20s': %p, value = %p (%d/%d): '%s'\n", + printf("Fl_String '%-20s': %p, value = %p (%d/%d):\n%s\n", info, this, value_, size_, capacity_, value_ ? value_ : ""); } } -- cgit v1.2.3