def get_err(err_code): """Convert an error code into an error message Args: err_code: Error code value (FDT_ERR_...) Returns: String error code """ return 'pylibfdt error %d: %s' % (-err_code, libfdt.strerror(-err_code))
def get_err(err_code): """Convert an error code into an error message Args: err_code: Error code value (FDT_ERR_...) Returns: String error code """ return 'pylibfdt error %d: %s' % (-err_code, libfdt.strerror(-err_code))
def testStrError(self): """Check that we can get an error string""" self.assertEquals(libfdt.strerror(-libfdt.NOTFOUND), 'FDT_ERR_NOTFOUND')
def testStrError(self): """Check that we can get an error string""" self.assertEquals(libfdt.strerror(-libfdt.NOTFOUND), 'FDT_ERR_NOTFOUND')