Skip to content

Commit b92c6fc

Browse files
leitaoPaolo Abeni
authored andcommitted
netconsole: add 'sysdata' suffix to related functions
This commit appends a common "sysdata" suffix to functions responsible for appending data to sysdata. This change enhances code clarity and prevents naming conflicts with other "append" functions, particularly in anticipation of the upcoming inclusion of the `release` field in the next patch. Signed-off-by: Breno Leitao <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 343f902 commit b92c6fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/net/netconsole.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,15 +1224,15 @@ static void populate_configfs_item(struct netconsole_target *nt,
12241224
init_target_config_group(nt, target_name);
12251225
}
12261226

1227-
static int append_cpu_nr(struct netconsole_target *nt, int offset)
1227+
static int sysdata_append_cpu_nr(struct netconsole_target *nt, int offset)
12281228
{
12291229
/* Append cpu=%d at extradata_complete after userdata str */
12301230
return scnprintf(&nt->extradata_complete[offset],
12311231
MAX_EXTRADATA_ENTRY_LEN, " cpu=%u\n",
12321232
raw_smp_processor_id());
12331233
}
12341234

1235-
static int append_taskname(struct netconsole_target *nt, int offset)
1235+
static int sysdata_append_taskname(struct netconsole_target *nt, int offset)
12361236
{
12371237
return scnprintf(&nt->extradata_complete[offset],
12381238
MAX_EXTRADATA_ENTRY_LEN, " taskname=%s\n",
@@ -1256,9 +1256,9 @@ static int prepare_extradata(struct netconsole_target *nt)
12561256
goto out;
12571257

12581258
if (nt->sysdata_fields & SYSDATA_CPU_NR)
1259-
extradata_len += append_cpu_nr(nt, extradata_len);
1259+
extradata_len += sysdata_append_cpu_nr(nt, extradata_len);
12601260
if (nt->sysdata_fields & SYSDATA_TASKNAME)
1261-
extradata_len += append_taskname(nt, extradata_len);
1261+
extradata_len += sysdata_append_taskname(nt, extradata_len);
12621262

12631263
WARN_ON_ONCE(extradata_len >
12641264
MAX_EXTRADATA_ENTRY_LEN * MAX_EXTRADATA_ITEMS);

0 commit comments

Comments
 (0)