File 3593-stdlib-Allow-atom-and-binary-as-linting-formats.patch of Package erlang
From 8cd271e188858588ca525665491f472196000668 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Wed, 21 Apr 2021 13:58:22 +0200
Subject: [PATCH 3/6] stdlib: Allow atom and binary as linting formats
---
lib/stdlib/src/erl_lint.erl | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/stdlib/src/erl_lint.erl b/lib/stdlib/src/erl_lint.erl
index f03e190516..7cafc9ce73 100644
--- a/lib/stdlib/src/erl_lint.erl
+++ b/lib/stdlib/src/erl_lint.erl
@@ -4071,6 +4071,10 @@ args_list(_Other) -> maybe.
args_length({cons,_L,_H,T}) -> 1 + args_length(T);
args_length({nil,_L}) -> 0.
+check_format_string(Fmt) when is_atom(Fmt) ->
+ check_format_string(atom_to_list(Fmt));
+check_format_string(Fmt) when is_binary(Fmt) ->
+ check_format_string(binary_to_list(Fmt));
check_format_string(Fmt) ->
extract_sequences(Fmt, []).
--
2.26.2