Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 85296 | Differences between
and this patch

Collapse All | Expand All

(-)nut-2.0.2.orig/drivers/hidups.c (-3 / +3 lines)
Lines 108-121 Link Here
108
108
109
	/* XXX: deal with bogosity by throwing it out */
109
	/* XXX: deal with bogosity by throwing it out */
110
	if (ev->value > 3000000) {
110
	if (ev->value > 3000000) {
111
		upslogx(LOG_INFO, "Ignoring bogus event 0x%x (%d)",
111
		upsdebugx(2, "Ignoring bogus event 0x%x (%d)",
112
			ev->hid, ev->value);
112
			ev->hid, ev->value);
113
		return;
113
		return;
114
	}
114
	}
115
115
116
	/* x86 page == ups-specific, ignore these for now */
116
	/* x86 page == ups-specific, ignore these for now */
117
	if ((ev->hid & 0x860000) == 0x860000) {
117
	if ((ev->hid & 0x860000) == 0x860000) {
118
		upslogx(LOG_INFO, "Ignoring x86 page event 0x%x (%d)",
118
		upsdebugx(2, "Ignoring x86 page event 0x%x (%d)",
119
			ev->hid, ev->value);
119
			ev->hid, ev->value);
120
		return;
120
		return;
121
	}
121
	}
Lines 176-182 Link Here
176
			break;
176
			break;
177
177
178
		default:
178
		default:
179
			upslogx(LOG_INFO, "Unhandled event: 0x%x (%d)",
179
			upsdebugx(2, "Unhandled event: 0x%x (%d)",
180
				ev->hid, ev->value);
180
				ev->hid, ev->value);
181
	}
181
	}
182
182

Return to bug 85296