From: tarbal@gmail.com (Jeff Kirsher)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Question regarding patches
Date: Wed, 19 Dec 2012 01:26:16 -0800 [thread overview]
Message-ID: <50D18838.3000701@gmail.com> (raw)
In-Reply-To: <1355906820.5392.10.camel@oc2826874472.ibm.com>
On 12/19/2012 12:47 AM, Shraddha Kamat wrote:
> Sorry if this is not relevant to kernel. But since I am
> patching the kernel - Please consider this as a uber beginner
> question to ask on this mailing list - forgive me for that.
>
> Now my question is -
>
> What "@@ -321,7 +321,8 @@" mean in this snippet from the patch -
The first number -321 means the line number of the original file that
the change takes place. The next number & means that before the change,
there were 7 lines of code. The next number +321 is the line number
after the change. Since this is the first (and only change) it is the
same as the first number. If there multiple changes in a patch, this
number can differ greatly from the first number. The last number is the
lines of code after the change.
>
> diff --git a/exec.h b/exec.h
> index 722c620..6abb687 100644
> --- a/exec.h
> +++ b/exec.h
> @@ -321,7 +321,8 @@ static void acct_arg_size(struct linux_binprm *bprm,
> unsigned long pages);
>
> -- Shraddha
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121219/cb9f2f39/attachment.bin
next prev parent reply other threads:[~2012-12-19 9:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-19 8:47 Question regarding patches Shraddha Kamat
2012-12-19 9:26 ` Jeff Kirsher [this message]
2012-12-19 9:58 ` Lijo Antony
2012-12-19 10:13 ` Shraddha Kamat
2012-12-19 10:33 ` devendra.aaru
2012-12-19 10:33 ` Avinash Patil
2012-12-19 11:01 ` Tobias Boege
2012-12-19 17:01 ` Anand Arumugam
-- strict thread matches above, loose matches on Subject: below --
2015-10-30 14:07 Shraddha Barke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50D18838.3000701@gmail.com \
--to=tarbal@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.