From: VMware, Inc <> Date: Wed, 24 Feb 2010 21:06:28 +0000 (-0800) Subject: Unsupported ioctls should not print log, just return -EOPNOTSUPP X-Git-Tag: 2010.02.23-236320~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec9cae6ddd04fa1edfede2e4a8f934249b434a3e;p=thirdparty%2Fopen-vm-tools.git Unsupported ioctls should not print log, just return -EOPNOTSUPP Remove printk's from unsupported ioctls. http://sourceforge.net/tracker/?func=detail&aid=1959582&group_id=204462&atid=989708 Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/modules/linux/vmxnet/vmxnet.c b/open-vm-tools/modules/linux/vmxnet/vmxnet.c index 5ac843079..3c70bc1fc 100644 --- a/open-vm-tools/modules/linux/vmxnet/vmxnet.c +++ b/open-vm-tools/modules/linux/vmxnet/vmxnet.c @@ -713,7 +713,6 @@ vmxnet_ethtool_ioctl(struct net_device *dev, struct ifreq *ifr) return vmxnet_set_tso(dev, ifr->ifr_data); #endif default: - printk(KERN_DEBUG" ethtool operation %d not supported\n", cmd); return -EOPNOTSUPP; } } @@ -746,7 +745,6 @@ vmxnet_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) return vmxnet_ethtool_ioctl(dev, ifr); #endif } - printk(KERN_DEBUG" ioctl operation %d not supported\n", cmd); return -EOPNOTSUPP; } #endif /* SET_ETHTOOL_OPS */