]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/ecryptfs/keystore.c
fs/ecryptfs: Add printf format/argument verification and fix fallout
[mv-sheeva.git] / fs / ecryptfs / keystore.c
index b1f6858a5223323c43708b62b6ab2d9c139dc376..25fd7f595c99daa4fab3846992d23ebc2ac28b78 100644 (file)
@@ -59,7 +59,7 @@ static int process_request_key_err(long err_code)
                break;
        default:
                ecryptfs_printk(KERN_WARNING, "Unknown error code: "
-                               "[0x%.16x]\n", err_code);
+                               "[0x%.16lx]\n", err_code);
                rc = -EINVAL;
        }
        return rc;
@@ -1864,8 +1864,8 @@ found_matching_auth_tok:
                                "session key for authentication token with sig "
                                "[%.*s]; rc = [%d]. Removing auth tok "
                                "candidate from the list and searching for "
-                               "the next match.\n", candidate_auth_tok_sig,
-                               ECRYPTFS_SIG_SIZE_HEX, rc);
+                               "the next match.\n", ECRYPTFS_SIG_SIZE_HEX,
+                               candidate_auth_tok_sig, rc);
                list_for_each_entry_safe(auth_tok_list_item,
                                         auth_tok_list_item_tmp,
                                         &auth_tok_list, list) {