ROCm / ROC-smi

ROC System Management Interface
https://github.com/RadeonOpenCompute/ROC-smi/blob/master/README.md
179 stars 55 forks source link

Fix the number of arguments for printLog() #29

Closed syoyo closed 6 years ago

syoyo commented 6 years ago

This simple patch fixes the following error.

Traceback (most recent call last):
  File "./rocm-smi", line 1058, in <module>
    showAllConcise(deviceList)
  File "./rocm-smi", line 714, in showAllConcise
    power = getSysfsValue(device, 'power')
  File "./rocm-smi", line 122, in getSysfsValue
    printLog(device, 'Unable to get SysFS value: ', key)
TypeError: printLog() takes 2 positional arguments but 3 were given
kentrussell commented 6 years ago

Already merged in (see 9fb7d9c94d6f9e7f8db1d77f92fc39fc56f68903). Thanks though!