Messages in this thread | | | Date | Sat, 24 Jul 2004 01:11:29 -0700 | From | Andrew Morton <> | Subject | Re: [patch] kernel events layer |
| |
Robert Love <rml@ximian.com> wrote: > > + buffer = (char *) get_zeroed_page(gfp_mask);
Why zeroed?
> + if (!buffer) > + return -ENOMEM; > + > + snprintf(buffer, PAGE_SIZE, "From: %s\n", object); > + len = strlen(buffer); > + snprintf(buffer + len, PAGE_SIZE - len, "Signal: %s\n", signal); > + len = strlen(buffer);
A single snprintf here would suit. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |