mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
fs/ecryptfs: Add printf format/argument verification and fix fallout
Add __attribute__((format... to __ecryptfs_printk Make formats and arguments match. Add casts to (unsigned long long) for %llu. Signed-off-by: Joe Perches <joe@perches.com> [tyhicks: 80 columns cleanup and fixed typo] Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
This commit is contained in:
@@ -810,9 +810,10 @@ static int __init ecryptfs_init(void)
|
||||
ecryptfs_printk(KERN_ERR, "The eCryptfs extent size is "
|
||||
"larger than the host's page size, and so "
|
||||
"eCryptfs cannot run on this system. The "
|
||||
"default eCryptfs extent size is [%d] bytes; "
|
||||
"the page size is [%d] bytes.\n",
|
||||
ECRYPTFS_DEFAULT_EXTENT_SIZE, PAGE_CACHE_SIZE);
|
||||
"default eCryptfs extent size is [%u] bytes; "
|
||||
"the page size is [%lu] bytes.\n",
|
||||
ECRYPTFS_DEFAULT_EXTENT_SIZE,
|
||||
(unsigned long)PAGE_CACHE_SIZE);
|
||||
goto out;
|
||||
}
|
||||
rc = ecryptfs_init_kmem_caches();
|
||||
|
Reference in New Issue
Block a user