dm: mei: add zero termination to devpath

Reset directory name to receive clean prints.

Tracked-On: #1847
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Acked-by: Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Alexander Usyskin 2018-11-19 09:58:23 +02:00 committed by lijinxia
parent 87fbb7003d
commit 7bd2976f9c
1 changed files with 1 additions and 0 deletions

View File

@ -806,6 +806,7 @@ static int vmei_me_client_scan_list(struct virtio_mei *vmei)
struct mei_client_properties props;
memset(&props, 0, sizeof(props));
devpath[d_offset] = '\0';
DPRINTF("found client %s %s\n", ent->d_name, devpath);