Use a static bool flag to ensure the overflow warning is printed only
once, avoiding repeated messages when the registry is full.
Make sure to set the flag before calling printf(), which can itself do
allocations with sandbox / Truetype.
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>