fs/ecryptfs: replace snprintf with sysfs_emit in show function
authorAnkit Chauhan <ankitchauhan2065@gmail.com>
Thu, 19 Jun 2025 03:15:36 +0000 (08:45 +0530)
committerChristian Brauner <brauner@kernel.org>
Mon, 23 Jun 2025 12:12:36 +0000 (14:12 +0200)
commit06a705356d7543b4eb2f41bef1ee0d5951700f7a
tree6602f5aabfee19e71ed769f8439088cc7610cd41
parent2b7c9664c3ce9d8da1113a1ca2546046de8eb93e
fs/ecryptfs: replace snprintf with sysfs_emit in show function

Use sysfs_emit() instead of snprintf() in version_show() function to
follow the preferred kernel API.

Signed-off-by: Ankit Chauhan <ankitchauhan2065@gmail.com>
Link: https://lore.kernel.org/20250619031536.19352-1-ankitchauhan2065@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/ecryptfs/main.c