OSDN Git Service

mmc: core: Replacing sprintf() with snprintf()
authorSiba Prasad <sibap@codeaurora.org>
Wed, 10 May 2017 13:07:49 +0000 (18:37 +0530)
committerSiba Prasad <sibap@codeaurora.org>
Wed, 10 May 2017 14:47:19 +0000 (20:17 +0530)
commite14f225493d709e0946ff6206a782cac51c1bbf7
tree1b33673eba7bda931e3ada801d18fb3cb2fba09f
parent3d82d66409abb91539bcb9d1f343fcb9d583f2b4
mmc: core: Replacing sprintf() with snprintf()

While using the sysfs entry for getting the different bit values
of EXT_CSD register, it is returned by sprintf(). But sprintf() has
been deprecated, that's why replace with safe function snprintf().
By using this patch, PAGE_SIZE(4Kb) is the max number of characters
store in a buffer.

Change-Id: Ifb3dc39e8d3728094fff10c7e761dc19fdfaa854
Signed-off-by: Siba Prasad <sibap@codeaurora.org>
drivers/mmc/core/bus.h