[haiku-bugs] Re: [Haiku] #16858: Tidy-up of TRACE Macros in Bootloader (and possibly elsewhere)?

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sun, 04 Apr 2021 08:48:24 -0000

#16858: Tidy-up of TRACE Macros in Bootloader (and possibly elsewhere)?
---------------------------------+-------------------------------
  Reporter:  stellarpower        |      Owner:  nobody
      Type:  task                |     Status:  new
  Priority:  normal              |  Milestone:  Unscheduled
 Component:  System/Boot Loader  |    Version:  R1/Development
Resolution:                      |   Keywords:  Formatting, TRACE
Blocked By:                      |   Blocking:
  Platform:  All                 |
---------------------------------+-------------------------------
Comment (by pulkomandy):

 Replying to [comment:2 X512]:

#define TRACE(x) dprintf x

Is it possible to reduce code duplication and move it in some common
 header? Keep only module name for tracing.

 Yes, that would be a good idea. There are some attempts for some
 components already: headers/private/media/MediaDebug.h,
 headers/private/bluetooth/btDebug.h, headers/os/support/Debug.h

 They should be investigated to see if we can have more code in common
 between them.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16858#comment:8>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: