tcpdump mailing list archives
Re: [PATCH] Bugfix/improvement for linux mmap ring
From: Dustin Spicuzza <dustin () virtualroadside com>
Date: Wed, 15 Jul 2009 16:34:42 -0400
Guy Harris wrote:
On Jul 15, 2009, at 12:40 PM, Dustin Spicuzza wrote:Found this bug while trying to add the buffer statistics API. git formatted patch attached: - Fixed bug where create_ring would fail for particular snaplen and buffer size combinations - Changed ring allocation to retry with 5% less buffer size instead of 50%Applied manually: $ git am --whitespace=nowarn /tmp/patch.eml Applying: Bugfix/improvement for linux mmap ring buffer error: patch failed: pcap-linux.c:2599 error: pcap-linux.c: patch does not apply Patch failed at 0001. When you have resolved this problem run "git am --resolved". If you would prefer to skip this patch, instead run "git am --skip". To restore the original branch and stop patching run "git am --abort". $ git --version git version 1.6.1.3 committed, and pushed. Should I upgrade to a newer version of Git or something? Every time I've gotten a patch in what I assume is the "standard" form for Git patches, "git am" 1) warns about whitespace and 2) fails to apply the patch without giving me any useful information as the the cause of the failure, leaving me unable to "[resolve] the problem" except by not using "git am". NOTE: for better or worse, at least by default, my mail program (OS X's Mail application - and, no, I have no interest in changing applications and certainly won't do so merely to make Git happy) saves mail messages with CR-LF line endings (no, not old-style Mac OS CR-only line endings, and not Macs-are-UN*X-boxes-now LF-only line endings, DOS-and-Windows CR-LF line endings). Is that all that's pissing Git off?
I dunno. My git does this when I applied it to another machine: $ git am ~/0001-Bugfix-improvement-for-linux-mmap-ring-buffer.patch Applying: Bugfix/improvement for linux mmap ring buffer /usr/src/libpcap/.git/rebase-apply/patch:14: trailing whitespace. /usr/src/libpcap/.git/rebase-apply/patch:24: trailing whitespace. /usr/src/libpcap/.git/rebase-apply/patch:39: trailing whitespace. warning: 3 lines add whitespace errors. But, it still applied it. You're probably right though that it hates the CR-LF. git version 1.6.0.4 for me, on Ubuntu 9.04 Dustin -- Innovation is just a problem away
Attachment:
signature.asc
Description: OpenPGP digital signature
Current thread:
- [PATCH] Bugfix/improvement for linux mmap ring buffer Dustin Spicuzza (Jul 15)
- Re: [PATCH] Bugfix/improvement for linux mmap ring buffer Guy Harris (Jul 15)
- Re: [PATCH] Bugfix/improvement for linux mmap ring Dustin Spicuzza (Jul 15)
- Re: [PATCH] Bugfix/improvement for linux mmap ring buffer Guy Harris (Jul 15)
