Change in ovirt-engine[master]: restapi: Use %n instead of \n in printf

juan.hernandez at redhat.com juan.hernandez at redhat.com
Thu Jan 21 09:40:50 UTC 2016


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Use %n instead of \n in printf
......................................................................


restapi: Use %n instead of \n in printf

This is needed to avoid the following findbugs warning:

  Format string should use %n rather than \n

  This format string include a newline character (\n). In format strings,
  it is generally preferable better to use %n, which will produce the
  platform-specific line separator.

  Bug kind and pattern: FS - VA_FORMAT_STRING_USES_NEWLINE

Change-Id: I884a66f60c39d54822068e75318f4a4aa2fd8a3c
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/rsdl/RsdlIOManager.java
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/52546
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I884a66f60c39d54822068e75318f4a4aa2fd8a3c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list