Skip to content

Commit 6513448

Browse files
authored
Merge pull request #322 from cliffbird/fix_bdf_search
Fix BDF search by matching a single character for function
2 parents b8b2a74 + 81ed440 commit 6513448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/platform/linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ static void get_port_bdf(const char *searchpath, int port,
419419
glob_t paths;
420420
int ret;
421421

422-
ret = snprintf(syspath, sizeof(syspath), "%s/*:*:%02x.*",
422+
ret = snprintf(syspath, sizeof(syspath), "%s/*:*:%02x.?",
423423
searchpath, port);
424424
if (ret >= sizeof(syspath))
425425
return;

0 commit comments

Comments
 (0)