SmartFS: Fix a compile error when FS debug enabled. Plus some changes needed by NuttX coding standard