I'm afraid this won't build or isn't portable:  if dbprintf is // as above defined, this would expand to

```C
if (...)
  //(stuf..);
int ret=0:
```
which would mean that the declaration of `ret` if in the `if` body.  Did you try to build with dprintf as it is now?