bus/pci: fix Windows kernel driver categories
[dpdk.git] / drivers / net / bnxt / tf_core / tf_core.c
index 0f49a00..feec3cf 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2019-2020 Broadcom
+ * Copyright(c) 2019-2021 Broadcom
  * All rights reserved.
  */
 
@@ -44,7 +44,7 @@ tf_open_session(struct tf *tfp,
 
        /* Verify control channel and build the beginning of session_id */
        rc = sscanf(parms->ctrl_chan_name,
-                   "%x:%x:%x.%d",
+                   "%x:%x:%x.%u",
                    &domain,
                    &bus,
                    &slot,
@@ -57,7 +57,7 @@ tf_open_session(struct tf *tfp,
 
                /* Check parsing of bus/slot/device */
                rc = sscanf(parms->ctrl_chan_name,
-                           "%x:%x.%d",
+                           "%x:%x.%u",
                            &bus,
                            &slot,
                            &device);
@@ -82,7 +82,7 @@ tf_open_session(struct tf *tfp,
                return rc;
 
        TFP_DRV_LOG(INFO,
-                   "domain:%d, bus:%d, device:%d\n",
+                   "domain:%d, bus:%d, device:%u\n",
                    parms->session_id.internal.domain,
                    parms->session_id.internal.bus,
                    parms->session_id.internal.device);
@@ -102,7 +102,7 @@ tf_attach_session(struct tf *tfp,
 
        /* Verify control channel */
        rc = sscanf(parms->ctrl_chan_name,
-                   "%x:%x:%x.%d",
+                   "%x:%x:%x.%u",
                    &domain,
                    &bus,
                    &slot,
@@ -115,7 +115,7 @@ tf_attach_session(struct tf *tfp,
 
        /* Verify 'attach' channel */
        rc = sscanf(parms->attach_chan_name,
-                   "%x:%x:%x.%d",
+                   "%x:%x:%x.%u",
                    &domain,
                    &bus,
                    &slot,