Log messages refactoring continued
authorZbigniew Jasinski <z.jasinski@samsung.com>
Mon, 17 Jun 2013 13:41:10 +0000 (15:41 +0200)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Thu, 6 Feb 2014 16:11:45 +0000 (17:11 +0100)
[Issue#]        SSDWSSP-323
[Bug/Feature]   Log messages refactoring
[Cause]         Legal issues with prohibited words in logs (ie. password)
[Solution]      Use SECURE_LOG* macro
[Verification]  Compile and run. No tests should fail

Change-Id: I5ed5815d1e105f31765162460350476cba574c00

src/server/security-server-main.c

index 799dedf..af3be83 100644 (file)
@@ -839,7 +839,7 @@ int process_gid_request(int sockfd, int msg_len)
        retval = TEMP_FAILURE_RETRY(read(sockfd, object_name, msg_len));
        if (retval < msg_len )
        {
-               SEC_SVR_ERR("%s", "Failed to read object name");
+               SECURE_LOGE("%s", "Failed to read object name");
                retval = send_generic_response(sockfd,
                                SECURITY_SERVER_MSG_TYPE_GID_RESPONSE,
                                SECURITY_SERVER_RETURN_CODE_BAD_REQUEST);