-
Notifications
You must be signed in to change notification settings - Fork 40
fix: Clear driver field when value is usbfs #536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added condition to reset the driver information when its value is "usbfs" (case-insensitive comparison) to handle invalid driver identifiers. Log: Filter out usbfs driver values Bug: https://pms.uniontech.com/bug-view-333969.html Change-Id: I4f2632c9ccef6f9df668460adda9b9078a65b932
Reviewer's guide (collapsed on small PRs)Reviewer's GuideIntroduce a case-insensitive filter for the ‘usbfs’ driver identifier by clearing the driver field when encountered in both setInfoFromLshw and setInfoFromHwinfo, preventing invalid driver values from persisting. Class diagram for updated DeviceOthers driver handlingclassDiagram
class DeviceOthers {
- QString m_Driver
+ void setInfoFromLshw(const QMap<QString, QString> &mapInfo)
+ void setInfoFromHwinfo(const QMap<QString, QString> &mapInfo)
}
DeviceOthers : setInfoFromLshw()
DeviceOthers : setInfoFromHwinfo()
DeviceOthers : m_Driver
%% Highlight the new logic for clearing m_Driver when value is 'usbfs'
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review我对这段代码进行了审查,以下是我的分析和改进建议: 代码逻辑审查
代码质量改进建议
代码性能改进建议
代码安全改进建议
综合改进建议
这些改进可以提高代码的可维护性、性能和安全性,同时减少潜在的错误。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: add-uos, max-lvs The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/merge |
|
Permission denied |
|
/merge |
Added condition to reset the driver information when its value is "usbfs" (case-insensitive comparison) to handle invalid driver identifiers.
Log: Filter out usbfs driver values
Bug: https://pms.uniontech.com/bug-view-333969.html
Change-Id: I4f2632c9ccef6f9df668460adda9b9078a65b932
Summary by Sourcery
Bug Fixes: