Please sign in to comment.
irqbalance: use process_one_line() instead of fscanf()
The logic using fscanf() to get data from open file can be instead by process_one_line(), and provide two functions get_hex() and get_int() to convert string to integer. also use get_int() instead of get_offline_status() and get_packageid(). Signed-off-by: Yunfeng Ye <email@example.com>
- Loading branch information
Showing with 20 additions and 41 deletions.