Re: [PATCH] mptutil(8) - capture errors and percolate up to caller

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Garrett Cooper
Date: Monday, November 8, 2010 - 10:47 am

On Mon, Nov 8, 2010 at 6:58 AM, John Baldwin <jhb@freebsd.org> wrote:

    I'll changed back all of the other *alloc calls (I was just
thinking about all of the other awesome cases that malloc can fail,
but if we break that assumption a lot more of our programs would break
too unfortunately :(...).
    I read up on cam_getccb and I agree based on the description today:

     "cam_getccb() allocates a CCB using malloc(3) and sets fields in the CCB
     header using values from the cam_device structure."

    But if it called something else in cam_getccb other than malloc it
might confuse the end-user if it failed *shrugs*... But whatever, that
would have to be a wholesale change if things changed in this area so
I'll default to being lazy now :) (I'm almost positive Scott did that
because he understands the overall system a lot better than me :D..).


    Yeah, that was stupid micro-optimization on my part.


    Same as above.


    Good point. I didn't catch that part in style(9) before now.
Thanks for the review!
-Garrett
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] mptutil(8) - capture errors and percolate up t ..., Garrett Cooper, (Mon Nov 8, 10:47 am)