[haiku-bugs] [Haiku] #8420: NetFS don't compile with DEBUG

  • From: "pdziepak" <trac@xxxxxxxxxxxx>
  • Date: Mon, 26 Mar 2012 16:56:04 -0000

#8420: NetFS don't compile with DEBUG
--------------------------+------------------------------
 Reporter:  pdziepak      |        Owner:  nobody
     Type:  bug           |       Status:  new
 Priority:  normal        |    Milestone:  R1
Component:  File Systems  |      Version:  R1/Development
 Keywords:  gsoc2012      |   Blocked By:
 Blocking:                |  Has a Patch:  0
 Platform:  All           |
--------------------------+------------------------------
 Debug macros like `PRINT`, `ERROR`, etc. are defined differently in NetFS
 and UserlandFS. In NetFS they are called normally `PRINT("this is a number
 %d", i)` while in UserlandFS they require double brackets `PRINT(("this is
 a number %d", i))`. Unfortunately, somehow this got mixed up in NetFS and
 there are both styles of calling these macros what causes the incorrect
 one to produce compilation errors.

 The patch makes NetFS definitions of these macros the same as UserlandFS
 (that implementation seems to be more up to date) and corrects all calls
 to use double brackets.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8420>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: