[PATCH 3/3] volume_id: uuid_format small code shrink

Sven-Göran Bergh svengbergh-busybox at yahoo.com
Wed Nov 21 15:08:18 UTC 2012


This patch depends on patch #2 in this set.
When #2 is applied it is possible to get rid
of a few additional bytes.

  volume_id: uuid_format small code shrink

  function                                             old     new   delta
  volume_id_probe_luks                                  90      93      +3
  volume_id_set_uuid                                   295     296      +1
  volume_id_probe_vfat                                 888     885      -3
  volume_id_probe_exfat                                254     251      -3
  static.CSWTCH                                         16       8      -8
  .rodata                                           148893  148877     -16
  ------------------------------------------------------------------------------
  (add/remove: 0/0 grow/shrink: 2/4 up/down: 4/-30)             Total: -26 bytes

  Signed-off-by: Sven-Göran Bergh <sgb at systemasis.org>
---
 util-linux/volume_id/util.c               |   17 +----------------
 util-linux/volume_id/volume_id_internal.h |   10 +++++-----
 2 files changed, 6 insertions(+), 21 deletions(-)

Patch attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3-volume_id-small-code-shrink.patch
Type: application/octet-stream
Size: 2633 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20121121/302b8005/attachment-0001.obj>


More information about the busybox mailing list