Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 440a6cc6 authored by Tobin C. Harding's avatar Tobin C. Harding Committed by Alistair Strachan
Browse files

BACKPORT: 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: default avatarTobin C. Harding <me@tobin.cc>
(cherry picked from commit 57e734423adda83f3b05505875343284efe3b39c)
Signed-off-by: default avatarSandeep Patil <sspatil@android.com>

Bug: 78533979
Test: Build and boot cuttlefish
Change-Id: Ib08350851ab0e99a3569c2c2e12aa421fb6bc622
parent b4d4c265
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment