login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
openbsd-tech
»
2010
»
October
»
20
Re: update pms driver
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Alexandr Shadchin
Subject:
Re: update pms driver
Date: Tuesday, October 19, 2010 - 11:59 pm
On Tue, Oct 19, 2010 at 08:39:05PM -0400, Kenneth R Westerback wrote:
quoted text
> On Tue, Oct 19, 2010 at 10:03:32PM +0200, Miod Vallat wrote: > > > Index: pms.c > > > =================================================================== > > > RCS file: /cvs/src/sys/dev/pckbc/pms.c,v > > > retrieving revision 1.10 > > > diff -u -p -r1.10 pms.c > > > --- pms.c 17 Oct 2010 10:32:00 -0000 1.10 > > > +++ pms.c 17 Oct 2010 11:30:24 -0000 > > > @@ -134,21 +134,10 @@ pmsprobe(struct device *parent, void *ma > > > /* reset the device */ > > > cmd[0] = PMS_RESET; > > > res = pckbc_poll_cmd(pa->pa_tag, pa->pa_slot, cmd, 1, 2, resp, 1); > > > - if (res) { > > > + if (res || resp[0] != PMS_RSTDONE || resp[1] != 0) { > > > #ifdef DEBUG > > > - printf("pmsprobe: reset error %d\n", res); > > > -#endif > > > - return (0); > > > - } > > > - if (resp[0] != PMS_RSTDONE) { > > > - printf("pmsprobe: reset response 0x%x\n", resp[0]); > > > - return (0); > > > - } > > > - > > > - /* get type number (0 = mouse) */ > > > - if (resp[1] != 0) { > > > -#ifdef DEBUG > > > - printf("pmsprobe: type 0x%x\n", resp[1]); > > > + printf("pms: reset error %d (response 0x%02x, type 0x%02x)\n", > > > + res, resp[0], resp[1]); > > > #endif > > > return (0); > > > } > > > > I disagree with this change (yes, I know it has been commited). Either > > you do not use option DEBUG, and your diff causes no change in the > > generated code, or you do, and your diff makes the error message less > > readable. I do not see any benefit in this. > > > > Miod > > I prefer the new error message and find the newer code easier to > read, but obviously a matter of taste. If you have really strong > feelings we can revert since it doesn't make functional changes. > > .... Ken
Thanks, Ken. I even did not have to translate :) This is about the same that I wanted to say. -- Alexandr Shadchin
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: update pms driver
, Alexandr Shadchin
, (Tue Oct 5, 8:15 am)
Re: update pms driver
, Nicholas Marriott
, (Tue Oct 5, 10:27 am)
Re: update pms driver
, Alexandr Shadchin
, (Thu Oct 7, 12:21 pm)
Re: update pms driver
, Alexandr Shadchin
, (Thu Oct 7, 12:28 pm)
Re: update pms driver
, Ian Darwin
, (Thu Oct 7, 1:40 pm)
Re: update pms driver
, Kenneth R Westerback
, (Tue Oct 12, 12:56 pm)
Re: update pms driver
, Nicholas Marriott
, (Sat Oct 16, 2:46 am)
Re: update pms driver
, Alexandr Shadchin
, (Sat Oct 16, 5:36 am)
Re: update pms driver
, Nicholas Marriott
, (Sat Oct 16, 7:42 am)
Re: update pms driver
, Alexandr Shadchin
, (Sat Oct 16, 8:00 am)
Re: update pms driver
, Alexandr Shadchin
, (Sun Oct 17, 4:38 am)
Re: update pms driver
, Nicholas Marriott
, (Mon Oct 18, 11:21 am)
Re: update pms driver
, Alexandr Shadchin
, (Tue Oct 19, 7:44 am)
Re: update pms driver
, Miod Vallat
, (Tue Oct 19, 1:03 pm)
Re: update pms driver
, Kenneth R Westerback
, (Tue Oct 19, 5:39 pm)
Re: update pms driver
, Alexandr Shadchin
, (Tue Oct 19, 11:59 pm)
Re: update pms driver
, Nicholas Marriott
, (Sat Oct 30, 5:34 pm)
Re: update pms driver
, Alexandr Shadchin
, (Sat Nov 6, 11:45 am)
Re: update pms driver
, Alexandr Shadchin
, (Wed Nov 17, 12:11 pm)
Re: update pms driver
, Nicholas Marriott
, (Mon Nov 22, 2:44 pm)
Re: update pms driver
, Alexandr Shadchin
, (Tue Nov 23, 4:10 am)
Re: update pms driver
, Nicholas Marriott
, (Mon Nov 29, 1:58 pm)
Re: update pms driver
, Alexandr Shadchin
, (Mon Nov 29, 2:43 pm)
Re: update pms driver
, Nicholas Marriott
, (Mon Nov 29, 3:08 pm)
Re: update pms driver
, Kevin Chadwick
, (Tue Nov 30, 5:16 am)
Re: update pms driver
, Alexandr Shadchin
, (Tue Nov 30, 9:33 am)
Re: update pms driver
, Mark Kettenis
, (Wed Dec 1, 3:33 am)
Re: update pms driver
, Alexandr Shadchin
, (Wed Dec 1, 5:14 am)
Re: update pms driver
, Nicholas Marriott
, (Mon Dec 6, 10:42 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jarek Poplawski
Re: Network slowdown due to CFS
Srikar Dronamraju
[PATCH v2 11/11] Uprobes traceevents patch.
jimmy bahuleyan
Re: how about mutual compatibility between Linux's GPLv2 and GPLv3?
Greg KH
[003/129] xen: handle events as edge-triggered
git
:
Eyvind Bernhardsen
Re: Where has "git ls-remote" reference pattern matching gone?
Junio C Hamano
Re: mingw, windows, crlf/lf, and git
Todd Zullinger
Re: [PATCH 2/2] send-email: rfc2047-quote subject lines with non-ascii characters
Shawn O. Pearce
Re: Switching from CVS to GIT
Santi Béjar
Re: How to use git-fmt-merge-msg?
git-commits-head
:
Linux Kernel Mailing List
amba: struct device - replace bus_id with dev_name(), dev_set_name()
Linux Kernel Mailing List
cpumask: make irq_set_affinity() take a const struct cpumask
Linux Kernel Mailing List
[Bluetooth] Make use of the default link policy settings
Linux Kernel Mailing List
x86/doc: mini-howto for using earlyprintk=dbgp
Linux Kernel Mailing List
geode lists are subscriber only
freebsd-current
:
Michael Moll
Re: Unable to boot on ECS K7S5A
=?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?=
Re: Root exploit for FreeBSD
FreeBSD Tinderbox
[head tinderbox] failure on ia64/ia64
Andrew Thompson
Re: USB2 makes moused insane
Garrett Cooper
Re: linux 3d applications keep crashing
linux-netdev
:
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Ramkrishna Vepa
[net-2.6 PATCH 1/10] Neterion: New driver: Driver help file
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Florian Fainelli
[PATCH] cpmac: fix all checkpatch errors and warnings
Alexey Dobriyan
[PATCH v2 2/6] netns ct: per-netns /proc/net/stat/nf_conntrack , /proc/net/stat/ip...
Colocation donated by:
Syndicate