Re: [Linuxptp-devel] [PATCH 1/6] sk: turn warnings about unexpected RX filter into debug messages.

2018-03-13 Thread Anders Selhammer
Sorry about this.
Configured my git-email and accidentally switched repo before I sent the mail. 
Please ignore this PATCH X/6

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel


[Linuxptp-devel] [PATCH 1/6] sk: turn warnings about unexpected RX filter into debug messages.

2018-03-13 Thread Anders Selhammer
From: Miroslav Lichvar 

When a network interface doesn't support the most specific PTP filter
(e.g. it can timestamp either all or no received packets), it is
expected that the driver will report a different filter than was
requested. Turn the warnings into debug messages to avoid confusing
the users.

Signed-off-by: Miroslav Lichvar 
---
 sk.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sk.c b/sk.c
index 2c7593b..60415cf 100644
--- a/sk.c
+++ b/sk.c
@@ -64,9 +64,9 @@ static int hwts_init(int fd, const char *device, int 
rx_filter, int one_step)
 
if (memcmp(&cfg, &req, sizeof(cfg))) {
 
-   pr_warning("driver changed our HWTSTAMP options");
-   pr_warning("tx_type   %d not %d", cfg.tx_type, req.tx_type);
-   pr_warning("rx_filter %d not %d", cfg.rx_filter, req.rx_filter);
+   pr_debug("driver changed our HWTSTAMP options");
+   pr_debug("tx_type   %d not %d", cfg.tx_type, req.tx_type);
+   pr_debug("rx_filter %d not %d", cfg.rx_filter, req.rx_filter);
 
if (cfg.tx_type != req.tx_type ||
(cfg.rx_filter != HWTSTAMP_FILTER_ALL &&
-- 
1.8.3.1


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel