In panic mode, the function: z_shell_fprintf is expected to be called from an interrupt context. Therefore, the dedicated assert cannot be checked in this case. Fixes #38612 Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>