niimaqdx: show IMAQdx error code as well as string

This commit is contained in:
Joshua M. Doe 2013-01-29 14:07:11 -05:00
parent 918b48f530
commit e9755b0b00

View File

@ -108,7 +108,7 @@ gst_niimaqdxsrc_report_imaq_error (IMAQdxError code)
if (code) {
IMAQdxGetErrorString (code, imaqdx_error_string,
IMAQDX_MAX_API_STRING_LENGTH);
GST_ERROR ("IMAQdx error: %s", imaqdx_error_string);
GST_ERROR ("IMAQdx error %d: %s", code, imaqdx_error_string);
}
return code;
}