The unformat type for "%d" should be u32 or int, otherwise the 'did' in
high stack address will be overflow to zero by the 'qid' which is in the
low stack address.
Like input "dev wq3.2" will return "did=0, qid=2".
Type: fix
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Change-Id: I0fe1d5b03e2c47e0a7925193e2c2f1ccc31d3e90
{
clib_error_t *error = 0;
intel_dsa_channel_t *ch;
- u8 did, qid;
+ u32 did, qid;
if (intel_dsa_main.lock == 0)
clib_spinlock_init (&(intel_dsa_main.lock));