public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andrew Dyer <amdyer@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [patch] fix lib_generic version of strswab()
Date: Tue, 8 Feb 2005 17:28:49 -0600	[thread overview]
Message-ID: <c166aa9f0502081528da149a4@mail.gmail.com> (raw)

This patch changes the behavior of strswab() to end the byte swapping
when either of the two candidate bytes is null.  The old behavior was
to only abort when the second byte was null.
It looks like this is only used for little endian machines running
with CONFIG_IDE.

I noticed this because the ide serial number was not printing out -
the reason was strswab() was running past the end of the previous
string in memory and swapping a null into the first byte of my serial
number string.

-- 
Hardware, n.:
        The parts of a computer system that can be kicked.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: uboot-strswab-patch.txt
Url: http://lists.denx.de/pipermail/u-boot/attachments/20050208/b5e58a1c/attachment.txt 

             reply	other threads:[~2005-02-08 23:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-08 23:28 Andrew Dyer [this message]
2005-09-25 14:15 ` [U-Boot-Users] [patch] fix lib_generic version of strswab() Wolfgang Denk

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=c166aa9f0502081528da149a4@mail.gmail.com \
    --to=amdyer@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox