lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220414110936.146378-3-jose.exposito89@gmail.com>
Date:   Thu, 14 Apr 2022 13:09:34 +0200
From:   José Expósito <jose.exposito89@...il.com>
To:     jikos@...nel.org
Cc:     benjamin.tissoires@...hat.com, spbnick@...il.com,
        linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
        José Expósito <jose.exposito89@...il.com>
Subject: [PATCH for-5.19/uclogic 2/4] HID: uclogic: Reduce indent for params format str/args

From: Nikolai Kondrashov <spbnick@...il.com>

Improve legibility of UCLOGIC_PARAMS_FMT_STR/ARGS.

Signed-off-by: Nikolai Kondrashov <spbnick@...il.com>
Signed-off-by: José Expósito <jose.exposito89@...il.com>
---
 drivers/hid/hid-uclogic-params.h | 186 +++++++++++++++----------------
 1 file changed, 93 insertions(+), 93 deletions(-)

diff --git a/drivers/hid/hid-uclogic-params.h b/drivers/hid/hid-uclogic-params.h
index ebf84b56746b..78965e683d20 100644
--- a/drivers/hid/hid-uclogic-params.h
+++ b/drivers/hid/hid-uclogic-params.h
@@ -203,102 +203,102 @@ extern int uclogic_params_init(struct uclogic_params *params,
 
 /* Tablet interface parameters *printf format string */
 #define UCLOGIC_PARAMS_FMT_STR \
-		".invalid = %s\n"                   \
-		".desc_ptr = %p\n"                  \
-		".desc_size = %u\n"                 \
-		".pen = {\n"                        \
-		"\t.desc_ptr = %p\n"                \
-		"\t.desc_size = %u\n"               \
-		"\t.id = %u\n"                      \
-		"\t.subreport_list = {\n"           \
-		"\t\t{0x%02hhx, %hhu},\n"           \
-		"\t\t{0x%02hhx, %hhu},\n"           \
-		"\t\t{0x%02hhx, %hhu},\n"           \
-		"\t}\n"                             \
-		"\t.inrange = %s\n"                 \
-		"\t.fragmented_hires = %s\n"        \
-		"\t.tilt_y_flipped = %s\n"          \
-		"}\n"                               \
-		".frame_list = {\n"                 \
-		"\t{\n"                             \
-		"\t\t.desc_ptr = %p\n"              \
-		"\t\t.desc_size = %u\n"             \
-		"\t\t.id = %u\n"                    \
-		"\t\t.suffix = %s\n"                \
-		"\t\t.re_lsb = %u\n"                \
-		"\t\t.dev_id_byte = %u\n"           \
-		"\t\t.touch_ring_byte = %u\n"       \
-		"\t\t.touch_ring_max = %hhd\n"      \
-		"\t\t.touch_ring_flip_at = %hhd\n"  \
-		"\t},\n"                            \
-		"\t{\n"                             \
-		"\t\t.desc_ptr = %p\n"              \
-		"\t\t.desc_size = %u\n"             \
-		"\t\t.id = %u\n"                    \
-		"\t\t.suffix = %s\n"                \
-		"\t\t.re_lsb = %u\n"                \
-		"\t\t.dev_id_byte = %u\n"           \
-		"\t\t.touch_ring_byte = %u\n"       \
-		"\t\t.touch_ring_max = %hhd\n"      \
-		"\t\t.touch_ring_flip_at = %hhd\n"  \
-		"\t},\n"                            \
-		"\t{\n"                             \
-		"\t\t.desc_ptr = %p\n"              \
-		"\t\t.desc_size = %u\n"             \
-		"\t\t.id = %u\n"                    \
-		"\t\t.suffix = %s\n"                \
-		"\t\t.re_lsb = %u\n"                \
-		"\t\t.dev_id_byte = %u\n"           \
-		"\t\t.touch_ring_byte = %u\n"       \
-		"\t\t.touch_ring_max = %hhd\n"      \
-		"\t\t.touch_ring_flip_at = %hhd\n"  \
-		"\t},\n"                            \
-		"}\n"
+	".invalid = %s\n"                   \
+	".desc_ptr = %p\n"                  \
+	".desc_size = %u\n"                 \
+	".pen = {\n"                        \
+	"\t.desc_ptr = %p\n"                \
+	"\t.desc_size = %u\n"               \
+	"\t.id = %u\n"                      \
+	"\t.subreport_list = {\n"           \
+	"\t\t{0x%02hhx, %hhu},\n"           \
+	"\t\t{0x%02hhx, %hhu},\n"           \
+	"\t\t{0x%02hhx, %hhu},\n"           \
+	"\t}\n"                             \
+	"\t.inrange = %s\n"                 \
+	"\t.fragmented_hires = %s\n"        \
+	"\t.tilt_y_flipped = %s\n"          \
+	"}\n"                               \
+	".frame_list = {\n"                 \
+	"\t{\n"                             \
+	"\t\t.desc_ptr = %p\n"              \
+	"\t\t.desc_size = %u\n"             \
+	"\t\t.id = %u\n"                    \
+	"\t\t.suffix = %s\n"                \
+	"\t\t.re_lsb = %u\n"                \
+	"\t\t.dev_id_byte = %u\n"           \
+	"\t\t.touch_ring_byte = %u\n"       \
+	"\t\t.touch_ring_max = %hhd\n"      \
+	"\t\t.touch_ring_flip_at = %hhd\n"  \
+	"\t},\n"                            \
+	"\t{\n"                             \
+	"\t\t.desc_ptr = %p\n"              \
+	"\t\t.desc_size = %u\n"             \
+	"\t\t.id = %u\n"                    \
+	"\t\t.suffix = %s\n"                \
+	"\t\t.re_lsb = %u\n"                \
+	"\t\t.dev_id_byte = %u\n"           \
+	"\t\t.touch_ring_byte = %u\n"       \
+	"\t\t.touch_ring_max = %hhd\n"      \
+	"\t\t.touch_ring_flip_at = %hhd\n"  \
+	"\t},\n"                            \
+	"\t{\n"                             \
+	"\t\t.desc_ptr = %p\n"              \
+	"\t\t.desc_size = %u\n"             \
+	"\t\t.id = %u\n"                    \
+	"\t\t.suffix = %s\n"                \
+	"\t\t.re_lsb = %u\n"                \
+	"\t\t.dev_id_byte = %u\n"           \
+	"\t\t.touch_ring_byte = %u\n"       \
+	"\t\t.touch_ring_max = %hhd\n"      \
+	"\t\t.touch_ring_flip_at = %hhd\n"  \
+	"\t},\n"                            \
+	"}\n"
 
 /* Tablet interface parameters *printf format arguments */
 #define UCLOGIC_PARAMS_FMT_ARGS(_params) \
-		((_params)->invalid ? "true" : "false"),                    \
-		(_params)->desc_ptr,                                        \
-		(_params)->desc_size,                                       \
-		(_params)->pen.desc_ptr,                                    \
-		(_params)->pen.desc_size,                                   \
-		(_params)->pen.id,                                          \
-		(_params)->pen.subreport_list[0].value,                     \
-		(_params)->pen.subreport_list[0].id,                        \
-		(_params)->pen.subreport_list[1].value,                     \
-		(_params)->pen.subreport_list[1].id,                        \
-		(_params)->pen.subreport_list[2].value,                     \
-		(_params)->pen.subreport_list[2].id,                        \
-		uclogic_params_pen_inrange_to_str((_params)->pen.inrange),  \
-		((_params)->pen.fragmented_hires ? "true" : "false"),       \
-		((_params)->pen.tilt_y_flipped ? "true" : "false"),         \
-		(_params)->frame_list[0].desc_ptr,                          \
-		(_params)->frame_list[0].desc_size,                         \
-		(_params)->frame_list[0].id,                                \
-		(_params)->frame_list[0].suffix,                            \
-		(_params)->frame_list[0].re_lsb,                            \
-		(_params)->frame_list[0].dev_id_byte,                       \
-		(_params)->frame_list[0].touch_ring_byte,                   \
-		(_params)->frame_list[0].touch_ring_max,                    \
-		(_params)->frame_list[0].touch_ring_flip_at,                \
-		(_params)->frame_list[1].desc_ptr,                          \
-		(_params)->frame_list[1].desc_size,                         \
-		(_params)->frame_list[1].id,                                \
-		(_params)->frame_list[1].suffix,                            \
-		(_params)->frame_list[1].re_lsb,                            \
-		(_params)->frame_list[1].dev_id_byte,                       \
-		(_params)->frame_list[1].touch_ring_byte,                   \
-		(_params)->frame_list[1].touch_ring_max,                    \
-		(_params)->frame_list[1].touch_ring_flip_at,                \
-		(_params)->frame_list[2].desc_ptr,                          \
-		(_params)->frame_list[2].desc_size,                         \
-		(_params)->frame_list[2].id,                                \
-		(_params)->frame_list[2].suffix,                            \
-		(_params)->frame_list[2].re_lsb,                            \
-		(_params)->frame_list[2].dev_id_byte,                       \
-		(_params)->frame_list[2].touch_ring_byte,                   \
-		(_params)->frame_list[2].touch_ring_max,                    \
-		(_params)->frame_list[2].touch_ring_flip_at
+	((_params)->invalid ? "true" : "false"),                    \
+	(_params)->desc_ptr,                                        \
+	(_params)->desc_size,                                       \
+	(_params)->pen.desc_ptr,                                    \
+	(_params)->pen.desc_size,                                   \
+	(_params)->pen.id,                                          \
+	(_params)->pen.subreport_list[0].value,                     \
+	(_params)->pen.subreport_list[0].id,                        \
+	(_params)->pen.subreport_list[1].value,                     \
+	(_params)->pen.subreport_list[1].id,                        \
+	(_params)->pen.subreport_list[2].value,                     \
+	(_params)->pen.subreport_list[2].id,                        \
+	uclogic_params_pen_inrange_to_str((_params)->pen.inrange),  \
+	((_params)->pen.fragmented_hires ? "true" : "false"),       \
+	((_params)->pen.tilt_y_flipped ? "true" : "false"),         \
+	(_params)->frame_list[0].desc_ptr,                          \
+	(_params)->frame_list[0].desc_size,                         \
+	(_params)->frame_list[0].id,                                \
+	(_params)->frame_list[0].suffix,                            \
+	(_params)->frame_list[0].re_lsb,                            \
+	(_params)->frame_list[0].dev_id_byte,                       \
+	(_params)->frame_list[0].touch_ring_byte,                   \
+	(_params)->frame_list[0].touch_ring_max,                    \
+	(_params)->frame_list[0].touch_ring_flip_at,                \
+	(_params)->frame_list[1].desc_ptr,                          \
+	(_params)->frame_list[1].desc_size,                         \
+	(_params)->frame_list[1].id,                                \
+	(_params)->frame_list[1].suffix,                            \
+	(_params)->frame_list[1].re_lsb,                            \
+	(_params)->frame_list[1].dev_id_byte,                       \
+	(_params)->frame_list[1].touch_ring_byte,                   \
+	(_params)->frame_list[1].touch_ring_max,                    \
+	(_params)->frame_list[1].touch_ring_flip_at,                \
+	(_params)->frame_list[2].desc_ptr,                          \
+	(_params)->frame_list[2].desc_size,                         \
+	(_params)->frame_list[2].id,                                \
+	(_params)->frame_list[2].suffix,                            \
+	(_params)->frame_list[2].re_lsb,                            \
+	(_params)->frame_list[2].dev_id_byte,                       \
+	(_params)->frame_list[2].touch_ring_byte,                   \
+	(_params)->frame_list[2].touch_ring_max,                    \
+	(_params)->frame_list[2].touch_ring_flip_at
 
 /* Get a replacement report descriptor for a tablet's interface. */
 extern int uclogic_params_get_desc(const struct uclogic_params *params,
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ