forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/drivers/net/fddi/skfp/ess.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /******************************************************************************
23 *
34 * (C)Copyright 1998,1999 SysKonnect,
45 * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
56 *
67 * See the file "skfddi.c" for further information.
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
128 *
139 * The information in this file is provided "AS IS" without warranty.
1410 *
....@@ -152,7 +148,7 @@
152148
153149 DB_ESSN(2, "fc %x ft %x", sm->smt_class, sm->smt_type);
154150 DB_ESSN(2, "ver %x tran %x", sm->smt_version, sm->smt_tid);
155
- DB_ESSN(2, "stn_id %s", addr_to_string(&sm->smt_source));
151
+ DB_ESSN(2, "stn_id %pM", &sm->smt_source);
156152
157153 DB_ESSN(2, "infolen %x res %lx", sm->smt_len, msg_res_type);
158154 DB_ESSN(2, "sbacmd %x", cmd->sba_cmd);
....@@ -312,8 +308,8 @@
312308 p = (void *) sm_to_para(smc,sm,SMT_P3210) ;
313309 overhead = ((struct smt_p_3210 *)p)->mib_overhead ;
314310
315
- DB_ESSN(2, "ESS: Change Request from %s",
316
- addr_to_string(&sm->smt_source));
311
+ DB_ESSN(2, "ESS: Change Request from %pM",
312
+ &sm->smt_source);
317313 DB_ESSN(2, "payload= %lx overhead= %lx",
318314 payload, overhead);
319315
....@@ -343,8 +339,8 @@
343339 return fs;
344340 }
345341
346
- DB_ESSN(2, "ESS: Report Request from %s",
347
- addr_to_string(&sm->smt_source));
342
+ DB_ESSN(2, "ESS: Report Request from %pM",
343
+ &sm->smt_source);
348344
349345 /*
350346 * verify that the resource type is sync bw only