]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
tools: hv: fix a compile warning in snprintf
authorWeibing Zhang <atheism.zhang@gmail.com>
Sun, 6 Nov 2016 21:14:14 +0000 (13:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2016 09:01:17 +0000 (10:01 +0100)
commit1745ba41945db2c77d918e3bcad898f8259f7f5a
treec093e2f1bb523b8776666afdd0bcf5029bcb1162
parent822114aaf5eea275398f79e668f14e0cf39d0f17
tools: hv: fix a compile warning in snprintf

hv_kvp_daemon.c: In function .kvp_mac_to_if_name.:
hv_kvp_daemon.c:705:2: warning: format not a string literal and no format arguments [-Wformat-security]
  snprintf(dev_id, sizeof(dev_id), kvp_net_dir);
  ^
hv_kvp_daemon.c:705:2: warning: format not a string literal and no format arguments [-Wformat-security]

Signed-off-by: Weibing Zhang <atheism.zhang@gmail.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/hv/hv_kvp_daemon.c