]> git.baikalelectronics.ru Git - kernel.git/commit
vsprintf: refactor %pK code out of pointer()
authorTobin C. Harding <me@tobin.cc>
Wed, 22 Nov 2017 23:56:39 +0000 (10:56 +1100)
committerTobin C. Harding <me@tobin.cc>
Wed, 29 Nov 2017 01:03:24 +0000 (12:03 +1100)
commitb2c3eba5a3cde5c121ef2fa5f44ce7fc8fe993eb
tree276ad0646a793ce615f57fe7ea88df2534708712
parent56ebc5624d00c8125b980fc0648035c8fa81e132
vsprintf: refactor %pK code out of pointer()

Currently code to handle %pK is all within the switch statement in
pointer(). This is the wrong level of abstraction. Each of the other switch
clauses call a helper function, pK should do the same.

Refactor code out of pointer() to new function restricted_pointer().

Signed-off-by: Tobin C. Harding <me@tobin.cc>
lib/vsprintf.c