Project

General

Profile

0009-diskinfo-8-Print-0x-prefix-for-hex-numbers-Change-of.patch

liweitianux, 11/08/2017 07:08 AM

Download (1.07 KB)

View differences:

sbin/diskinfo/diskinfo.c
30 30
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
31 31
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 32
 * SUCH DAMAGE.
33
 * 
34
 * $DragonFly: src/sbin/diskinfo/diskinfo.c,v 1.7 2008/05/19 10:19:49 corecode Exp $
35 33
 */
36 34

  
37 35
#define DKTYPENAMES
......
98 96
dumppart(const char *path, struct partinfo *dpart)
99 97
{
100 98
	printf("%-16s ", path);
101
	printf("blksize=%-4d off=%012jx size=%012jx ",
99
	printf("blksize=%-4d offset=0x%012jx size=0x%012jx ",
102 100
		dpart->media_blksize,
103 101
		(intmax_t)dpart->media_offset,
104 102
		(intmax_t)dpart->media_size
105
-