-
-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nut-scanner USB: disable some output results #2221
nut-scanner USB: disable some output results #2221
Conversation
Some additional fields, like 'device' (device number / path), may introduce more issues than solving. Hence disable these Signed-off-by: Arnaud Quette <Arnaud.Quette@free.fr>
❌ Build nut 2.8.1.1246-master failed (commit f0cd2d5be4 by @aquette) |
Cheers, just to be clear: the For "bcd" - need to comment away the variable definition too, then (avoid unused variable). Or maybe add an option that the parser may/may-not use comments (or inject them in some other manner - also for alternative maybe suitable drivers, etc.). Or handle the bcd in driver args (even if ignoring in some cases) so it is just not an invalid string anymore. |
…currently use [networkupstools#2221] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…BCD_DEVICE [networkupstools#2221] Earlier approaches to only partially comment away code trigger static analysis warnings here or there, and we do not want to fully drop it here just yet. Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
✅ Build nut 2.8.1.1248-master completed (commit 4029c402c2 by @jimklimov) |
I might be barking up the wrong tree here, but would disabling some of those outputs (particularly physically-oriented ones regarding a device's location on the system such as I've had users who had their UPS not detected out of the box and exactly such a scenario was where Perhaps for sake of principle of least surprise an additional toggle could be implemented (something like |
Seems this area needs a bit more of a holistic design than chopping stuff away :) So delaying until a later release (hoping to cut one soon to push existing bug fixes out).
|
quite frankly, as long as the device reports its serial, it's good ;) All the other means are just to be 400% sure we can keep up with cheaper units (reporting mfr 0000 or 0001 or such) in case there are multiple, and with all cases that may happen in the multiverse. Still, @desertwitch idea of a filter (more a minimal, with vendorid, productid and serial) is great! For 2.8.2 Jim please. The current situation would cause regressions! |
Ack on 2.8.2 - I hoped to issue one before NY to have a release out which includes some errata fixes over 2.8.1, but that window has sailed so might as well bundle a few more improvements like this one into the 2.8.2 when it appears. |
…utput Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…t_simulation.c [networkupstools#2246] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…code [networkupstools#2246] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…utput Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…utput Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…tion section level of detail [networkupstools#2221] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…s#2205] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…es instead of hacks in prepared config data [networkupstools#2221] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…_commented_option_to_device() for link-specific details if not suggesting to use them directly [networkupstools#2221] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
5fbbbfe
to
4243814
Compare
Based on preceding discussions, I took a shot at updating this PR to allow enterprising users to still have the Thought a bit about defaulting the flags based on amount of discovered devices and whether they have usable serial number values (all different, non-trivial, not repetitive characters like all-spaces or all-zeroes - logic for all that is present in nut-display.c sanity checker), or if all vendor/product IDs are different. E.g. if there are several detected devices and they seem similar, enable bus/busport/device(?) by default; for one device or several unique devices - keep these hidden. Also extended @aquette : any ideas how to best register one text file source as the man page for several method names? There's gotta be a better way than to ship a renamed copy, right? :) @aquette, @desertwitch : testing welcome, so far just developed in a VM to pass the build and spell-checker :) |
Seems to work.
|
Seems to work in my testing too, also this is a beautiful solution to the problem - thanks to all. 💯 |
Privet @jimklimov, hi @desertwitch As for manpages aliasing, check malloc/calloc for ex, these use .Nm iirc to provide additional names (aliases). |
…il_level variables [networkupstools#2221] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
ed1ddce
to
56ce7e9
Compare
…markup for a single asciidoc text describing several command names [networkupstools#2221] https://asciidoc-py.github.io/userguide.html#X1 Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…s#2221] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
56ce7e9
to
e289c79
Compare
… recipe for BSD make [networkupstools#2221] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…_to_device.html recipe for now [networkupstools#2221] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Uff, wrighting the wrongs of makefiles is oft more burdensome than dev'p'ment itself, if I may say so myself! |
Ironically, Eaton's (Ellipse ECO at least) devices all report |
Some additional fields, like 'device' (device number / path), may introduce more issues than solving. Hence disable these