<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtd-utils.git/include, branch v1.4.3</title>
<subtitle>A mirror of http://git.infradead.org/mtd-utils.git</subtitle>
<id>https://git.infraroot.at/mtd-utils.git/atom?h=v1.4.3</id>
<link rel='self' href='https://git.infraroot.at/mtd-utils.git/atom?h=v1.4.3'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/'/>
<updated>2011-02-25T08:52:57+00:00</updated>
<entry>
<title>mtd-utils: common.h: simple_strtoll type usage</title>
<updated>2011-02-25T08:52:57+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2011-02-16T01:47:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=1b083e0c9011f32028a79d4ad707deaa17ad1b5e'/>
<id>urn:sha1:1b083e0c9011f32028a79d4ad707deaa17ad1b5e</id>
<content type='text'>
We must use "long long" and "unsigned long long" types when
implementing the functions "simple_strtoll()" and "simple_strtoull()",
respectively. This prevents casting/truncation errors on systems where
"long" is not the same size as "long long" (that is, on most systems).

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>common.h: Add MAX() macro, fix MIN()</title>
<updated>2010-12-02T03:25:23+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2010-11-29T08:01:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=3941e9fd08f1d03a52f6584b70077ff0ac866696'/>
<id>urn:sha1:3941e9fd08f1d03a52f6584b70077ff0ac866696</id>
<content type='text'>
Add MAX() macro to common.h, to be used in future patches.

Also a style change in comma location on MIN().

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>mtd-utils: xalloc: simplify/unify error messages</title>
<updated>2010-10-01T06:33:32+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2010-10-01T05:45:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=3afb8f079dda8439c17f191ff593b7c4bf1c4b57'/>
<id>urn:sha1:3afb8f079dda8439c17f191ff593b7c4bf1c4b57</id>
<content type='text'>
I'm not sure that if we actually are out of memory that declaring the
failing allocation size is useful in the output.  So use the same
simple string in every error message to cut down on size (there will
only be one copy of this at runtime).  Size is a much more common
concern than handling OOM issues which most likely aren't the fault
of mtd-utils in the first place.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>mtd-utils: dont redefine MIN()</title>
<updated>2010-10-01T06:33:14+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2010-10-01T05:44:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=ee3c2bef131ff1d6723b66d5cec3c8738954b407'/>
<id>urn:sha1:ee3c2bef131ff1d6723b66d5cec3c8738954b407</id>
<content type='text'>
Some C library headers will define MIN(), so add an #ifndef check.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>mtd-utils: sys_errmsg: optimize indentation</title>
<updated>2010-10-01T06:31:25+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2010-10-01T05:39:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=90ebf6f62007726bea619dcb5beb6e858bedfd6d'/>
<id>urn:sha1:90ebf6f62007726bea619dcb5beb6e858bedfd6d</id>
<content type='text'>
Rather than do a for loop and output 1 space at a time, let the printf
code take care of indenting the string based on the constant length.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>mtd-utils: introduce xzalloc() helper</title>
<updated>2010-10-01T06:29:44+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2010-10-01T05:38:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=a25a7e66a277c0637d6c210a1f59564ac5359863'/>
<id>urn:sha1:a25a7e66a277c0637d6c210a1f59564ac5359863</id>
<content type='text'>
Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>mtd-utils: add xasprintf() helper</title>
<updated>2010-09-30T05:54:46+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2010-09-30T05:28:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=7a44e55045954ea0af06ab98ccfb41b18c1747f2'/>
<id>urn:sha1:7a44e55045954ea0af06ab98ccfb41b18c1747f2</id>
<content type='text'>
Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>mtd-utils: new memory wrappers</title>
<updated>2010-09-30T05:54:05+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2010-09-30T05:27:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=b2dc086600f64d5a2db179fb6bed79a0a78228e4'/>
<id>urn:sha1:b2dc086600f64d5a2db179fb6bed79a0a78228e4</id>
<content type='text'>
The mkfs.jffs2 program has local wrappers for memory related functions
that are useful beyond mkfs.jffs2, so break them out into a common header.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>mtd-utils: new strtoX helpers</title>
<updated>2010-09-27T06:44:54+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2010-09-27T06:42:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=2c413f5232e02d8dd413a93f7f4f5cb8d2420ec6'/>
<id>urn:sha1:2c413f5232e02d8dd413a93f7f4f5cb8d2420ec6</id>
<content type='text'>
Simply usage of converting strings to numbers by adding some wrappers
around the standard strtoX functions.  These helpers simplify the api
of these functions a bit by providing an optional "error" pointer and
automatic error message.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>mtd-utils: common.h: clean up PROGRAM_NAME usage</title>
<updated>2010-09-27T06:42:24+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2010-09-27T06:40:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=a14a8f6856178323a405e8a3d3e877363d387ae0'/>
<id>urn:sha1:a14a8f6856178323a405e8a3d3e877363d387ae0</id>
<content type='text'>
Make PROGRAM_NAME required in order to include common.h so we can rely
on it existing.

Further, stop embedding PROGRAM_NAME in every error message so that we
can save string space with it being declare only once.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
</feed>
