dm: hw: Replace sscanf with permitted string API

Replace sscanf in device model hw directory

Tracked-On: #2079
Signed-off-by: Long Liu <long.liu@intel.com>
Reviewed-by: Shuo A Liu <shuo.a.liu@intel.com>
Reviewed-by: <yonghua.huang@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Long Liu
2018-12-12 08:05:10 +00:00
committed by wenlingz
parent 63b814e7e9
commit 5ab68eb97b
7 changed files with 56 additions and 17 deletions

View File

@@ -316,6 +316,8 @@ void update_pt_info(uint16_t phys_bdf);
int check_gsi_sharing_violation(void);
int pciaccess_init(void);
void pciaccess_cleanup(void);
int parse_bdf(char *s, int *bus, int *dev, int *func, int base);
/**
* @brief Set virtual PCI device's configuration space in 1 byte width