X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=extras%2Fvolume_id%2Flib%2Fext.c;h=13ec470291e06ea2b41b9624c249299c07286fcc;hb=c9809be56844710fffcba8741f485e0911551f19;hp=56edd2531f01787da0f57c9074e49196a1bad687;hpb=c70560feef0eb61a150cd2f956f0beead4313ffe;p=elogind.git diff --git a/extras/volume_id/lib/ext.c b/extras/volume_id/lib/ext.c index 56edd2531..13ec47029 100644 --- a/extras/volume_id/lib/ext.c +++ b/extras/volume_id/lib/ext.c @@ -4,21 +4,24 @@ * Copyright (C) 2004-2008 Kay Sievers * Copyright (C) 2008 Theodore Ts'o * - * The probe logic is based on libblkid from e2fsutils. + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation version 2 of the License. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ #ifndef _GNU_SOURCE #define _GNU_SOURCE 1 #endif -#ifdef HAVE_CONFIG_H -# include -#endif - #include #include #include @@ -27,7 +30,7 @@ #include #include "libvolume_id.h" -#include "util.h" +#include "libvolume_id-private.h" struct ext2_super_block { uint32_t s_inodes_count; @@ -132,7 +135,7 @@ int volume_id_probe_ext(struct volume_id *id, uint64_t off, uint64_t size) uint32_t feature_incompat; uint32_t flags; - info("probing at offset 0x%llx\n", (unsigned long long) off); + info("probing at offset 0x%" PRIx64 "\n", off); es = (struct ext2_super_block *) volume_id_get_buffer(id, off + EXT_SUPERBLOCK_OFFSET, 0x200); if (es == NULL)