Переглянути джерело

[i386] Change [u]int32_t to [unsigned] int, rather than [unsigned] long

This brings us in to line with Linux definitions, and also simplifies
adding x86_64 support since both platforms have 2-byte shorts, 4-byte
ints and 8-byte long longs.
tags/v0.9.6
Michael Brown 16 роки тому
джерело
коміт
b59e0cc56e
45 змінених файлів з 157 додано та 157 видалено
  1. 2
    2
      src/arch/i386/core/dumpregs.c
  2. 1
    1
      src/arch/i386/drivers/net/undinet.c
  3. 2
    2
      src/arch/i386/drivers/net/undirom.c
  4. 1
    1
      src/arch/i386/firmware/pcbios/memmap.c
  5. 1
    1
      src/arch/i386/image/bzimage.c
  6. 3
    3
      src/arch/i386/image/multiboot.c
  7. 2
    2
      src/arch/i386/include/bits/stdint.h
  8. 1
    1
      src/arch/i386/include/gdbmach.h
  9. 1
    1
      src/arch/i386/interface/pxe/pxe_tftp.c
  10. 2
    2
      src/core/debug.c
  11. 1
    1
      src/core/uuid.c
  12. 1
    1
      src/drivers/bus/isapnp.c
  13. 1
    1
      src/drivers/bus/pci.c
  14. 4
    4
      src/drivers/infiniband/arbel.c
  15. 4
    4
      src/drivers/infiniband/hermon.c
  16. 1
    1
      src/drivers/infiniband/ib_packet.c
  17. 1
    1
      src/drivers/infiniband/ib_sma.c
  18. 1
    1
      src/drivers/infiniband/ib_smc.c
  19. 2
    2
      src/drivers/infiniband/linda.c
  20. 1
    1
      src/drivers/net/3c515.c
  21. 2
    2
      src/drivers/net/davicom.c
  22. 15
    15
      src/drivers/net/e1000/e1000.c
  23. 7
    7
      src/drivers/net/e1000/e1000_hw.c
  24. 2
    2
      src/drivers/net/ipoib.c
  25. 14
    14
      src/drivers/net/mtnic.c
  26. 1
    1
      src/drivers/net/mtnic.h
  27. 4
    4
      src/drivers/net/natsemi.c
  28. 11
    11
      src/drivers/net/phantom/phantom.c
  29. 2
    2
      src/drivers/net/prism2_plx.c
  30. 18
    18
      src/drivers/net/r8169.c
  31. 4
    4
      src/drivers/net/sis900.c
  32. 2
    2
      src/drivers/net/sundance.c
  33. 2
    2
      src/drivers/net/tg3.c
  34. 2
    2
      src/drivers/net/tulip.c
  35. 1
    1
      src/drivers/net/via-velocity.c
  36. 3
    3
      src/image/efi_image.c
  37. 1
    1
      src/image/elf.c
  38. 1
    1
      src/interface/efi/efi_console.c
  39. 4
    4
      src/interface/efi/efi_io.c
  40. 2
    2
      src/interface/efi/efi_pci.c
  41. 16
    16
      src/interface/efi/efi_snp.c
  42. 2
    2
      src/interface/efi/efi_timer.c
  43. 2
    2
      src/interface/efi/efi_umalloc.c
  44. 5
    5
      src/net/tcp.c
  45. 1
    1
      src/net/tcp/iscsi.c

+ 2
- 2
src/arch/i386/core/dumpregs.c Переглянути файл

@@ -12,8 +12,8 @@ void __asmcall _dump_regs ( struct i386_all_regs *ix86 ) {
12 12
 			      "addr32 leal 4(%%esp), %%esp\n\t"
13 13
 			      "ret\n\t" ) : : );
14 14
 
15
-	printf ( "EAX=%08lx EBX=%08lx ECX=%08lx EDX=%08lx\n"
16
-		 "ESI=%08lx EDI=%08lx EBP=%08lx ESP=%08lx\n"
15
+	printf ( "EAX=%08x EBX=%08x ECX=%08x EDX=%08x\n"
16
+		 "ESI=%08x EDI=%08x EBP=%08x ESP=%08x\n"
17 17
 		 "CS=%04x SS=%04x DS=%04x ES=%04x FS=%04x GS=%04x\n",
18 18
 		 ix86->regs.eax, ix86->regs.ebx, ix86->regs.ecx,
19 19
 		 ix86->regs.edx, ix86->regs.esi, ix86->regs.edi,

+ 1
- 1
src/arch/i386/drivers/net/undinet.c Переглянути файл

@@ -701,7 +701,7 @@ int undinet_probe ( struct undi_device *undi ) {
701 701
 				   &undi_iface,
702 702
 				   sizeof ( undi_iface ) ) ) != 0 )
703 703
 		goto err_undi_get_iface_info;
704
-	DBGC ( undinic, "UNDINIC %p has type %s and link speed %ld\n",
704
+	DBGC ( undinic, "UNDINIC %p has type %s and link speed %d\n",
705 705
 	       undinic, undi_iface.IfaceType, undi_iface.LinkSpeed );
706 706
 	if ( strncmp ( ( ( char * ) undi_iface.IfaceType ), "Etherboot",
707 707
 		       sizeof ( undi_iface.IfaceType ) ) == 0 ) {

+ 2
- 2
src/arch/i386/drivers/net/undirom.c Переглянути файл

@@ -52,7 +52,7 @@ static int undirom_parse_pxeromid ( struct undi_rom *undirom,
52 52
 			 sizeof ( undi_rom_id ) );
53 53
 	if ( undi_rom_id.Signature != UNDI_ROM_ID_SIGNATURE ) {
54 54
 		DBGC ( undirom, "UNDIROM %p has bad PXE ROM ID signature "
55
-		       "%08lx\n", undirom, undi_rom_id.Signature );
55
+		       "%08x\n", undirom, undi_rom_id.Signature );
56 56
 		return -EINVAL;
57 57
 	}
58 58
 
@@ -94,7 +94,7 @@ static int undirom_parse_pcirheader ( struct undi_rom *undirom,
94 94
 			 sizeof ( pcir_header ) );
95 95
 	if ( pcir_header.signature != PCIR_SIGNATURE ) {
96 96
 		DBGC ( undirom, "UNDIROM %p has bad PCI expansion header "
97
-		       "signature %08lx\n", undirom, pcir_header.signature );
97
+		       "signature %08x\n", undirom, pcir_header.signature );
98 98
 		return -EINVAL;
99 99
 	}
100 100
 

+ 1
- 1
src/arch/i386/firmware/pcbios/memmap.c Переглянути файл

@@ -210,7 +210,7 @@ static int meme820 ( struct memory_map *memmap ) {
210 210
 			if ( e820buf.attrs & E820_ATTR_NONVOLATILE )
211 211
 				DBG ( ", non-volatile" );
212 212
 			if ( e820buf.attrs & E820_ATTR_UNKNOWN )
213
-				DBG ( ", other [%08lx]", e820buf.attrs );
213
+				DBG ( ", other [%08x]", e820buf.attrs );
214 214
 			DBG ( ")" );
215 215
 		}
216 216
 		DBG ( "\n" );

+ 1
- 1
src/arch/i386/image/bzimage.c Переглянути файл

@@ -400,7 +400,7 @@ static int bzimage_load_header ( struct image *image,
400 400
 	copy_from_user ( bzhdr, image->data, BZI_HDR_OFFSET,
401 401
 			 sizeof ( *bzhdr ) );
402 402
 	if ( bzhdr->header != BZI_SIGNATURE ) {
403
-		DBGC ( image, "bzImage %p bad signature %08lx\n",
403
+		DBGC ( image, "bzImage %p bad signature %08x\n",
404 404
 		       image, bzhdr->header );
405 405
 		return -ENOEXEC;
406 406
 	}

+ 3
- 3
src/arch/i386/image/multiboot.c Переглянути файл

@@ -220,7 +220,7 @@ multiboot_build_module_list ( struct image *image,
220 220
 
221 221
 	/* Dump module configuration */
222 222
 	for ( i = 0 ; i < count ; i++ ) {
223
-		DBGC ( image, "MULTIBOOT %p module %d is [%lx,%lx)\n",
223
+		DBGC ( image, "MULTIBOOT %p module %d is [%x,%x)\n",
224 224
 		       image, i, modules[i].mod_start,
225 225
 		       modules[i].mod_end );
226 226
 	}
@@ -418,7 +418,7 @@ static int multiboot_load ( struct image *image ) {
418 418
 		       image );
419 419
 		return rc;
420 420
 	}
421
-	DBGC ( image, "MULTIBOOT %p found header with flags %08lx\n",
421
+	DBGC ( image, "MULTIBOOT %p found header with flags %08x\n",
422 422
 	       image, hdr.mb.flags );
423 423
 
424 424
 	/* This is a multiboot image, valid or otherwise */
@@ -427,7 +427,7 @@ static int multiboot_load ( struct image *image ) {
427 427
 
428 428
 	/* Abort if we detect flags that we cannot support */
429 429
 	if ( hdr.mb.flags & MB_UNSUPPORTED_FLAGS ) {
430
-		DBGC ( image, "MULTIBOOT %p flags %08lx not supported\n",
430
+		DBGC ( image, "MULTIBOOT %p flags %08x not supported\n",
431 431
 		       image, ( hdr.mb.flags & MB_UNSUPPORTED_FLAGS ) );
432 432
 		return -ENOTSUP;
433 433
 	}

+ 2
- 2
src/arch/i386/include/bits/stdint.h Переглянути файл

@@ -7,12 +7,12 @@ typedef signed long		off_t;
7 7
 
8 8
 typedef unsigned char		uint8_t;
9 9
 typedef unsigned short		uint16_t;
10
-typedef unsigned long		uint32_t;
10
+typedef unsigned int		uint32_t;
11 11
 typedef unsigned long long	uint64_t;
12 12
 
13 13
 typedef signed char		int8_t;
14 14
 typedef signed short		int16_t;
15
-typedef signed long		int32_t;
15
+typedef signed int		int32_t;
16 16
 typedef signed long long	int64_t;
17 17
 
18 18
 typedef unsigned long		physaddr_t;

+ 1
- 1
src/arch/i386/include/gdbmach.h Переглянути файл

@@ -12,7 +12,7 @@
12 12
 
13 13
 #include <stdint.h>
14 14
 
15
-typedef uint32_t gdbreg_t;
15
+typedef unsigned long gdbreg_t;
16 16
 
17 17
 /* The register snapshot, this must be in sync with interrupt handler and the
18 18
  * GDB protocol. */

+ 1
- 1
src/arch/i386/interface/pxe/pxe_tftp.c Переглянути файл

@@ -485,7 +485,7 @@ PXENV_EXIT_t pxenv_tftp_read_file ( struct s_PXENV_TFTP_READ_FILE
485 485
 				    *tftp_read_file ) {
486 486
 	int rc;
487 487
 
488
-	DBG ( "PXENV_TFTP_READ_FILE to %08lx+%lx", tftp_read_file->Buffer,
488
+	DBG ( "PXENV_TFTP_READ_FILE to %08x+%x", tftp_read_file->Buffer,
489 489
 	      tftp_read_file->BufferSize );
490 490
 
491 491
 	/* Open TFTP file */

+ 2
- 2
src/core/debug.c Переглянути файл

@@ -106,12 +106,12 @@ int check_region ( void *region, size_t len ) {
106 106
 					 virt_to_phys ( region + len ) );
107 107
 			}
108 108
 			in_corruption = 1;
109
-			printf ( "--- offset %#lx ", offset );
109
+			printf ( "--- offset %#x ", offset );
110 110
 		} else if ( ( in_corruption != 0 ) &&
111 111
 			    ( test == GUARD_SYMBOL ) ) {
112 112
 			/* End of corruption */
113 113
 			in_corruption = 0;
114
-			printf ( "to offset %#lx", offset );
114
+			printf ( "to offset %#x", offset );
115 115
 		}
116 116
 
117 117
 	}

+ 1
- 1
src/core/uuid.c Переглянути файл

@@ -36,7 +36,7 @@
36 36
 char * uuid_ntoa ( union uuid *uuid ) {
37 37
 	static char buf[37]; /* "00000000-0000-0000-0000-000000000000" */
38 38
 
39
-	sprintf ( buf, "%08lx-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x",
39
+	sprintf ( buf, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x",
40 40
 		  be32_to_cpu ( uuid->canonical.a ),
41 41
 		  be16_to_cpu ( uuid->canonical.b ),
42 42
 		  be16_to_cpu ( uuid->canonical.c ),

+ 1
- 1
src/drivers/bus/isapnp.c Переглянути файл

@@ -84,7 +84,7 @@ static void isapnpbus_remove ( struct root_device *rootdev );
84 84
  *
85 85
  */
86 86
 
87
-#define ISAPNP_CARD_ID_FMT "ID %04x:%04x (\"%s\") serial %lx"
87
+#define ISAPNP_CARD_ID_FMT "ID %04x:%04x (\"%s\") serial %x"
88 88
 #define ISAPNP_CARD_ID_DATA(identifier)					  \
89 89
 	(identifier)->vendor_id, (identifier)->prod_id,			  \
90 90
 	isa_id_string ( (identifier)->vendor_id, (identifier)->prod_id ), \

+ 1
- 1
src/drivers/bus/pci.c Переглянути файл

@@ -67,7 +67,7 @@ static unsigned long pci_bar ( struct pci_device *pci, unsigned int reg ) {
67 67
 			if ( sizeof ( unsigned long ) > sizeof ( uint32_t ) ) {
68 68
 				return ( ( ( uint64_t ) high << 32 ) | low );
69 69
 			} else {
70
-				DBG ( "Unhandled 64-bit BAR %08lx%08lx\n",
70
+				DBG ( "Unhandled 64-bit BAR %08x%08x\n",
71 71
 				      high, low );
72 72
 				return PCI_BASE_ADDRESS_MEM_TYPE_64;
73 73
 			}

+ 4
- 4
src/drivers/infiniband/arbel.c Переглянути файл

@@ -992,7 +992,7 @@ static void arbel_ring_doorbell ( struct arbel *arbel,
992 992
 				  union arbelprm_doorbell_register *db_reg,
993 993
 				  unsigned int offset ) {
994 994
 
995
-	DBGC2 ( arbel, "Arbel %p ringing doorbell %08lx:%08lx at %lx\n",
995
+	DBGC2 ( arbel, "Arbel %p ringing doorbell %08x:%08x at %lx\n",
996 996
 		arbel, db_reg->dword[0], db_reg->dword[1],
997 997
 		virt_to_phys ( arbel->uar + offset ) );
998 998
 
@@ -1182,7 +1182,7 @@ static int arbel_complete ( struct ib_device *ibdev,
1182 1182
 	if ( opcode >= ARBEL_OPCODE_RECV_ERROR ) {
1183 1183
 		/* "s" field is not valid for error opcodes */
1184 1184
 		is_send = ( opcode == ARBEL_OPCODE_SEND_ERROR );
1185
-		DBGC ( arbel, "Arbel %p CPN %lx syndrome %lx vendor %lx\n",
1185
+		DBGC ( arbel, "Arbel %p CPN %lx syndrome %x vendor %x\n",
1186 1186
 		       arbel, cq->cqn, MLX_GET ( &cqe->error, syndrome ),
1187 1187
 		       MLX_GET ( &cqe->error, vendor_code ) );
1188 1188
 		rc = -EIO;
@@ -1492,7 +1492,7 @@ static void arbel_poll_eq ( struct ib_device *ibdev ) {
1492 1492
 
1493 1493
 		/* Ring doorbell */
1494 1494
 		MLX_FILL_1 ( &db_reg.ci, 0, ci, arbel_eq->next_idx );
1495
-		DBGCP ( arbel, "Ringing doorbell %08lx with %08lx\n",
1495
+		DBGCP ( arbel, "Ringing doorbell %08lx with %08x\n",
1496 1496
 			virt_to_phys ( arbel_eq->doorbell ),
1497 1497
 			db_reg.dword[0] );
1498 1498
 		writel ( db_reg.dword[0], arbel_eq->doorbell );
@@ -1696,7 +1696,7 @@ static int arbel_start_firmware ( struct arbel *arbel ) {
1696 1696
 		       arbel, strerror ( rc ) );
1697 1697
 		goto err_query_fw;
1698 1698
 	}
1699
-	DBGC ( arbel, "Arbel %p firmware version %ld.%ld.%ld\n", arbel,
1699
+	DBGC ( arbel, "Arbel %p firmware version %d.%d.%d\n", arbel,
1700 1700
 	       MLX_GET ( &fw, fw_rev_major ), MLX_GET ( &fw, fw_rev_minor ),
1701 1701
 	       MLX_GET ( &fw, fw_rev_subminor ) );
1702 1702
 	fw_pages = MLX_GET ( &fw, fw_pages );

+ 4
- 4
src/drivers/infiniband/hermon.c Переглянути файл

@@ -1086,7 +1086,7 @@ static int hermon_post_send ( struct ib_device *ibdev,
1086 1086
 
1087 1087
 	/* Ring doorbell register */
1088 1088
 	MLX_FILL_1 ( &db_reg.send, 0, qn, qp->qpn );
1089
-	DBGCP ( hermon, "Ringing doorbell %08lx with %08lx\n",
1089
+	DBGCP ( hermon, "Ringing doorbell %08lx with %08x\n",
1090 1090
 		virt_to_phys ( hermon_send_wq->doorbell ), db_reg.dword[0] );
1091 1091
 	writel ( db_reg.dword[0], ( hermon_send_wq->doorbell ) );
1092 1092
 
@@ -1172,7 +1172,7 @@ static int hermon_complete ( struct ib_device *ibdev,
1172 1172
 	if ( opcode >= HERMON_OPCODE_RECV_ERROR ) {
1173 1173
 		/* "s" field is not valid for error opcodes */
1174 1174
 		is_send = ( opcode == HERMON_OPCODE_SEND_ERROR );
1175
-		DBGC ( hermon, "Hermon %p CQN %lx syndrome %lx vendor %lx\n",
1175
+		DBGC ( hermon, "Hermon %p CQN %lx syndrome %x vendor %x\n",
1176 1176
 		       hermon, cq->cqn, MLX_GET ( &cqe->error, syndrome ),
1177 1177
 		       MLX_GET ( &cqe->error, vendor_error_syndrome ) );
1178 1178
 		rc = -EIO;
@@ -1473,7 +1473,7 @@ static void hermon_poll_eq ( struct ib_device *ibdev ) {
1473 1473
 		/* Ring doorbell */
1474 1474
 		MLX_FILL_1 ( &db_reg.event, 0,
1475 1475
 			     ci, ( hermon_eq->next_idx & 0x00ffffffUL ) );
1476
-		DBGCP ( hermon, "Ringing doorbell %08lx with %08lx\n",
1476
+		DBGCP ( hermon, "Ringing doorbell %08lx with %08x\n",
1477 1477
 			virt_to_phys ( hermon_eq->doorbell ),
1478 1478
 			db_reg.dword[0] );
1479 1479
 		writel ( db_reg.dword[0], hermon_eq->doorbell );
@@ -1714,7 +1714,7 @@ static int hermon_start_firmware ( struct hermon *hermon ) {
1714 1714
 		       hermon, strerror ( rc ) );
1715 1715
 		goto err_query_fw;
1716 1716
 	}
1717
-	DBGC ( hermon, "Hermon %p firmware version %ld.%ld.%ld\n", hermon,
1717
+	DBGC ( hermon, "Hermon %p firmware version %d.%d.%d\n", hermon,
1718 1718
 	       MLX_GET ( &fw, fw_rev_major ), MLX_GET ( &fw, fw_rev_minor ),
1719 1719
 	       MLX_GET ( &fw, fw_rev_subminor ) );
1720 1720
 	fw_pages = MLX_GET ( &fw, fw_pages );

+ 1
- 1
src/drivers/infiniband/ib_packet.c Переглянути файл

@@ -222,7 +222,7 @@ int ib_pull ( struct ib_device *ibdev, struct io_buffer *iobuf,
222 222
 		}
223 223
 	}
224 224
 
225
-	DBGC2 ( ibdev, "IBDEV %p RX %04x:%08lx <= %04x:%08lx (key %08lx)\n",
225
+	DBGC2 ( ibdev, "IBDEV %p RX %04x:%08lx <= %04x:%08lx (key %08x)\n",
226 226
 		ibdev, lid,
227 227
 		( IB_LID_MULTICAST( lid ) ? ( qp ? (*qp)->qpn : -1UL ) : qpn ),
228 228
 		av->lid, av->qpn, ntohl ( deth->qkey ) );

+ 1
- 1
src/drivers/infiniband/ib_sma.c Переглянути файл

@@ -269,7 +269,7 @@ static int ib_sma_mad ( struct ib_sma *sma, union ib_mad *mad ) {
269 269
 	int rc;
270 270
 
271 271
 	DBGC ( sma, "SMA %p received SMP with bv=%02x mc=%02x cv=%02x "
272
-	       "meth=%02x attr=%04x mod=%08lx\n", sma, hdr->base_version,
272
+	       "meth=%02x attr=%04x mod=%08x\n", sma, hdr->base_version,
273 273
 	       hdr->mgmt_class, hdr->class_version, hdr->method,
274 274
 	       ntohs ( hdr->attr_id ), ntohl ( hdr->attr_mod ) );
275 275
 	DBGC2_HDA ( sma, 0, mad, sizeof ( *mad ) );

+ 1
- 1
src/drivers/infiniband/ib_smc.c Переглянути файл

@@ -156,7 +156,7 @@ int ib_smc_update ( struct ib_device *ibdev, ib_local_mad_t local_mad ) {
156 156
 		return rc;
157 157
 	ibdev->pkey = ntohs ( smp->pkey_table.pkey[0] );
158 158
 
159
-	DBGC ( ibdev, "IBDEV %p port GID is %08lx:%08lx:%08lx:%08lx\n", ibdev,
159
+	DBGC ( ibdev, "IBDEV %p port GID is %08x:%08x:%08x:%08x\n", ibdev,
160 160
 	       htonl ( ibdev->gid.u.dwords[0] ),
161 161
 	       htonl ( ibdev->gid.u.dwords[1] ),
162 162
 	       htonl ( ibdev->gid.u.dwords[2] ),

+ 2
- 2
src/drivers/infiniband/linda.c Переглянути файл

@@ -129,7 +129,7 @@ static void linda_readq ( struct linda *linda, uint32_t *dwords,
129 129
 			       "movq %%mm0, (%0)\n\t"
130 130
 			       : : "r" ( dwords ), "r" ( addr ) : "memory" );
131 131
 
132
-	DBGIO ( "[%08lx] => %08lx%08lx\n",
132
+	DBGIO ( "[%08lx] => %08x%08x\n",
133 133
 		virt_to_phys ( addr ), dwords[1], dwords[0] );
134 134
 }
135 135
 #define linda_readq( _linda, _ptr, _offset ) \
@@ -150,7 +150,7 @@ static void linda_writeq ( struct linda *linda, const uint32_t *dwords,
150 150
 			   unsigned long offset ) {
151 151
 	void *addr = ( linda->regs + offset );
152 152
 
153
-	DBGIO ( "[%08lx] <= %08lx%08lx\n",
153
+	DBGIO ( "[%08lx] <= %08x%08x\n",
154 154
 		virt_to_phys ( addr ), dwords[1], dwords[0] );
155 155
 
156 156
 	__asm__ __volatile__ ( "movq (%0), %%mm0\n\t"

+ 1
- 1
src/drivers/net/3c515.c Переглянути файл

@@ -640,7 +640,7 @@ static int t515_probe ( struct nic *nic, struct isapnp_device *isapnp ) {
640 640
 		}
641 641
 
642 642
 	}
643
-	DBG ( "3c515 Resource configuration register 0x%lX, DCR 0x%hX.\n",
643
+	DBG ( "3c515 Resource configuration register 0x%X, DCR 0x%hX.\n",
644 644
 	      inl(nic->ioaddr + 0x2002), inw(nic->ioaddr + 0x2000) );
645 645
 	corkscrew_found_device(nic->ioaddr, nic->irqno, CORKSCREW_ID,
646 646
 			       options, nic);

+ 2
- 2
src/drivers/net/davicom.c Переглянути файл

@@ -630,7 +630,7 @@ static void davicom_disable ( struct nic *nic ) {
630 630
   outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr + CSR6);
631 631
 
632 632
   /* Clear the missed-packet counter. */
633
-  (volatile unsigned long)inl(ioaddr + CSR8);
633
+  inl(ioaddr + CSR8);
634 634
 }
635 635
 
636 636
 
@@ -676,7 +676,7 @@ static int davicom_probe ( struct nic *nic, struct pci_device *pci ) {
676 676
   outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr + CSR6);
677 677
 
678 678
   /* Clear the missed-packet counter. */
679
-  (volatile unsigned long)inl(ioaddr + CSR8);
679
+  inl(ioaddr + CSR8);
680 680
 
681 681
   /* Get MAC Address */
682 682
   /* read EEPROM data */

+ 15
- 15
src/drivers/net/e1000/e1000.c Переглянути файл

@@ -258,8 +258,8 @@ e1000_configure_tx ( struct e1000_adapter *adapter )
258 258
 	E1000_WRITE_REG ( hw, TDBAL, virt_to_bus ( adapter->tx_base ) );
259 259
 	E1000_WRITE_REG ( hw, TDLEN, adapter->tx_ring_size );
260 260
 			  
261
-        DBG ( "TDBAL: %#08lx\n",  E1000_READ_REG ( hw, TDBAL ) );
262
-        DBG ( "TDLEN: %ld\n",     E1000_READ_REG ( hw, TDLEN ) );
261
+        DBG ( "TDBAL: %#08x\n",  E1000_READ_REG ( hw, TDBAL ) );
262
+        DBG ( "TDLEN: %d\n",     E1000_READ_REG ( hw, TDLEN ) );
263 263
 
264 264
 	/* Setup the HW Tx Head and Tail descriptor pointers */
265 265
 	E1000_WRITE_REG ( hw, TDH, 0 );
@@ -385,9 +385,9 @@ e1000_configure_rx ( struct e1000_adapter *adapter )
385 385
 	E1000_WRITE_REG ( hw, RCTL, rctl );
386 386
 	E1000_WRITE_FLUSH ( hw );
387 387
 
388
-        DBG ( "RDBAL: %#08lx\n",  E1000_READ_REG ( hw, RDBAL ) );
389
-        DBG ( "RDLEN: %ld\n",     E1000_READ_REG ( hw, RDLEN ) );
390
-        DBG ( "RCTL:  %#08lx\n",  E1000_READ_REG ( hw, RCTL ) );
388
+        DBG ( "RDBAL: %#08x\n",  E1000_READ_REG ( hw, RDBAL ) );
389
+        DBG ( "RDLEN: %d\n",     E1000_READ_REG ( hw, RDLEN ) );
390
+        DBG ( "RCTL:  %#08x\n",  E1000_READ_REG ( hw, RCTL ) );
391 391
 }
392 392
 
393 393
 /**
@@ -577,7 +577,7 @@ e1000_transmit ( struct net_device *netdev, struct io_buffer *iobuf )
577 577
 		E1000_TXD_CMD_IFCS | iob_len ( iobuf );
578 578
 	tx_curr_desc->upper.data = 0;
579 579
 	
580
-	DBG ( "TX fill: %ld tx_curr: %ld addr: %#08lx len: %zd\n", adapter->tx_fill_ctr, 
580
+	DBG ( "TX fill: %d tx_curr: %d addr: %#08lx len: %zd\n", adapter->tx_fill_ctr, 
581 581
 	      tx_curr, virt_to_bus ( iobuf->data ), iob_len ( iobuf ) );
582 582
 	      
583 583
 	/* Point to next free descriptor */
@@ -620,7 +620,7 @@ e1000_poll ( struct net_device *netdev )
620 620
 	if ( ! icr )
621 621
 		return;
622 622
 		
623
-        DBG ( "e1000_poll: intr_status = %#08lx\n", icr );
623
+        DBG ( "e1000_poll: intr_status = %#08x\n", icr );
624 624
 
625 625
 	/* Check status of transmitted packets
626 626
 	 */
@@ -635,17 +635,17 @@ e1000_poll ( struct net_device *netdev )
635 635
 		if ( ! ( tx_status & E1000_TXD_STAT_DD ) )
636 636
 			break;
637 637
 		
638
-		DBG ( "Sent packet. tx_head: %ld tx_tail: %ld tx_status: %#08lx\n",
638
+		DBG ( "Sent packet. tx_head: %d tx_tail: %d tx_status: %#08x\n",
639 639
 	    	      adapter->tx_head, adapter->tx_tail, tx_status );
640 640
 
641 641
 		if ( tx_status & ( E1000_TXD_STAT_EC | E1000_TXD_STAT_LC | 
642 642
 				   E1000_TXD_STAT_TU ) ) {
643 643
 			netdev_tx_complete_err ( netdev, adapter->tx_iobuf[i], -EINVAL );
644
-			DBG ( "Error transmitting packet, tx_status: %#08lx\n",
644
+			DBG ( "Error transmitting packet, tx_status: %#08x\n",
645 645
 			      tx_status );
646 646
 		} else {
647 647
 			netdev_tx_complete ( netdev, adapter->tx_iobuf[i] );
648
-			DBG ( "Success transmitting packet, tx_status: %#08lx\n",
648
+			DBG ( "Success transmitting packet, tx_status: %#08x\n",
649 649
 			      tx_status );
650 650
 		}
651 651
 
@@ -667,16 +667,16 @@ e1000_poll ( struct net_device *netdev )
667 667
 			          ( i * sizeof ( *adapter->rx_base ) ); 
668 668
 		rx_status = rx_curr_desc->status;
669 669
 		
670
-		DBG2 ( "Before DD Check RX_status: %#08lx\n", rx_status );
670
+		DBG2 ( "Before DD Check RX_status: %#08x\n", rx_status );
671 671
 	
672 672
 		if ( ! ( rx_status & E1000_RXD_STAT_DD ) )
673 673
 			break;
674 674
 
675
-		DBG ( "RCTL = %#08lx\n", E1000_READ_REG ( &adapter->hw, RCTL ) );
675
+		DBG ( "RCTL = %#08x\n", E1000_READ_REG ( &adapter->hw, RCTL ) );
676 676
 	
677 677
 		rx_len = rx_curr_desc->length;
678 678
 
679
-                DBG ( "Received packet, rx_curr: %ld  rx_status: %#08lx  rx_len: %ld\n",
679
+                DBG ( "Received packet, rx_curr: %d  rx_status: %#08x  rx_len: %d\n",
680 680
                       i, rx_status, rx_len );
681 681
                 
682 682
                 rx_err = rx_curr_desc->errors;
@@ -685,7 +685,7 @@ e1000_poll ( struct net_device *netdev )
685 685
 		
686 686
 			netdev_rx_err ( netdev, NULL, -EINVAL );
687 687
 			DBG ( "e1000_poll: Corrupted packet received!"
688
-			      " rx_err: %#08lx\n", rx_err );
688
+			      " rx_err: %#08x\n", rx_err );
689 689
 		} else 	{
690 690
 		
691 691
 			/* If unable allocate space for this packet,
@@ -962,7 +962,7 @@ e1000_open ( struct net_device *netdev )
962 962
 
963 963
 	e1000_configure_rx ( adapter );
964 964
 	
965
-        DBG ( "RXDCTL: %#08lx\n",  E1000_READ_REG ( &adapter->hw, RXDCTL ) );
965
+        DBG ( "RXDCTL: %#08x\n",  E1000_READ_REG ( &adapter->hw, RXDCTL ) );
966 966
 
967 967
 	return 0;
968 968
 

+ 7
- 7
src/drivers/net/e1000/e1000_hw.c Переглянути файл

@@ -1429,7 +1429,7 @@ e1000_copper_link_preconfig(struct e1000_hw *hw)
1429 1429
         DEBUGOUT("Error, did not detect valid phy.\n");
1430 1430
         return ret_val;
1431 1431
     }
1432
-    DEBUGOUT1("Phy ID = %#08lx \n", hw->phy_id);
1432
+    DEBUGOUT1("Phy ID = %#08x \n", hw->phy_id);
1433 1433
 
1434 1434
     /* Set PHY to class A mode (if necessary) */
1435 1435
     ret_val = e1000_set_phy_mode(hw);
@@ -3551,7 +3551,7 @@ e1000_read_phy_reg_ex(struct e1000_hw *hw, uint32_t reg_addr,
3551 3551
     DEBUGFUNC("e1000_read_phy_reg_ex");
3552 3552
 
3553 3553
     if (reg_addr > MAX_PHY_REG_ADDRESS) {
3554
-        DEBUGOUT1("PHY Address %ld is out of range\n", reg_addr);
3554
+        DEBUGOUT1("PHY Address %d is out of range\n", reg_addr);
3555 3555
         return -E1000_ERR_PARAM;
3556 3556
     }
3557 3557
 
@@ -3689,7 +3689,7 @@ e1000_write_phy_reg_ex(struct e1000_hw *hw, uint32_t reg_addr,
3689 3689
     DEBUGFUNC("e1000_write_phy_reg_ex");
3690 3690
 
3691 3691
     if (reg_addr > MAX_PHY_REG_ADDRESS) {
3692
-        DEBUGOUT1("PHY Address %ld is out of range\n", reg_addr);
3692
+        DEBUGOUT1("PHY Address %d is out of range\n", reg_addr);
3693 3693
         return -E1000_ERR_PARAM;
3694 3694
     }
3695 3695
 
@@ -4141,10 +4141,10 @@ e1000_detect_gig_phy(struct e1000_hw *hw)
4141 4141
     phy_init_status = e1000_set_phy_type(hw);
4142 4142
 
4143 4143
     if ((match) && (phy_init_status == E1000_SUCCESS)) {
4144
-        DEBUGOUT1("PHY ID %#08lx detected\n", hw->phy_id);
4144
+        DEBUGOUT1("PHY ID %#08x detected\n", hw->phy_id);
4145 4145
         return E1000_SUCCESS;
4146 4146
     }
4147
-    DEBUGOUT1("Invalid PHY ID %#08lx\n", hw->phy_id);
4147
+    DEBUGOUT1("Invalid PHY ID %#08x\n", hw->phy_id);
4148 4148
     return -E1000_ERR_PHY;
4149 4149
 }
4150 4150
 
@@ -8795,13 +8795,13 @@ e1000_verify_write_ich8_byte(struct e1000_hw *hw, uint32_t index, uint8_t byte)
8795 8795
     int32_t error = E1000_SUCCESS;
8796 8796
     int32_t program_retries = 0;
8797 8797
 
8798
-    DEBUGOUT2("Byte := %2.2X Offset := %ld\n", byte, index);
8798
+    DEBUGOUT2("Byte := %2.2X Offset := %d\n", byte, index);
8799 8799
 
8800 8800
     error = e1000_write_ich8_byte(hw, index, byte);
8801 8801
 
8802 8802
     if (error != E1000_SUCCESS) {
8803 8803
         for (program_retries = 0; program_retries < 100; program_retries++) {
8804
-            DEBUGOUT2("Retrying \t Byte := %2.2X Offset := %ld\n", byte, index);
8804
+            DEBUGOUT2("Retrying \t Byte := %2.2X Offset := %d\n", byte, index);
8805 8805
             error = e1000_write_ich8_byte(hw, index, byte);
8806 8806
             udelay(100);
8807 8807
             if (error == E1000_SUCCESS)

+ 2
- 2
src/drivers/net/ipoib.c Переглянути файл

@@ -219,7 +219,7 @@ ipoib_cache_peer ( const struct ib_gid *gid, unsigned long qpn ) {
219 219
 	peer->key = key;
220 220
 	peer->mac.qpn = htonl ( qpn );
221 221
 	memcpy ( &peer->mac.gid, gid, sizeof ( peer->mac.gid ) );
222
-	DBG ( "IPoIB peer %x has GID %08lx:%08lx:%08lx:%08lx and QPN %lx\n",
222
+	DBG ( "IPoIB peer %x has GID %08x:%08x:%08x:%08x and QPN %lx\n",
223 223
 	      peer->key, htonl ( gid->u.dwords[0] ),
224 224
 	      htonl ( gid->u.dwords[1] ), htonl ( gid->u.dwords[2] ),
225 225
 	      htonl ( gid->u.dwords[3] ), qpn );
@@ -313,7 +313,7 @@ const char * ipoib_ntoa ( const void *ll_addr ) {
313 313
 	static char buf[45];
314 314
 	const struct ipoib_mac *mac = ll_addr;
315 315
 
316
-	snprintf ( buf, sizeof ( buf ), "%08lx:%08lx:%08lx:%08lx:%08lx",
316
+	snprintf ( buf, sizeof ( buf ), "%08x:%08x:%08x:%08x:%08x",
317 317
 		   htonl ( mac->qpn ), htonl ( mac->gid.u.dwords[0] ),
318 318
 		   htonl ( mac->gid.u.dwords[1] ),
319 319
 		   htonl ( mac->gid.u.dwords[2] ),

+ 14
- 14
src/drivers/net/mtnic.c Переглянути файл

@@ -87,7 +87,7 @@
87 87
 * and it's physical aligned address in 'pa'
88 88
 */
89 89
 static int
90
-mtnic_alloc_aligned(unsigned int size, void **va, u32 *pa, unsigned int alignment)
90
+mtnic_alloc_aligned(unsigned int size, void **va, unsigned long *pa, unsigned int alignment)
91 91
 {
92 92
 	*va = alloc_memblock(size, alignment);
93 93
 	if (!*va) {
@@ -157,7 +157,7 @@ mtnic_alloc_iobuf(struct mtnic_priv *priv, struct mtnic_ring *ring,
157 157
 		if (!&ring->iobuf[index]) {
158 158
 			if (ring->prod <= (ring->cons + 1)) {
159 159
 				DBG("Error allocating Rx io "
160
-				    "buffer number %lx", index);
160
+				    "buffer number %x", index);
161 161
 				/* In case of error freeing io buffer */
162 162
 				mtnic_free_io_buffers(ring);
163 163
 				return MTNIC_ERROR;
@@ -211,14 +211,14 @@ mtnic_alloc_ring(struct mtnic_priv *priv, struct mtnic_ring *ring,
211 211
 	err = mtnic_alloc_aligned(ring->buf_size, (void *)&ring->buf,
212 212
 			    &ring->dma, PAGE_SIZE);
213 213
         if (err) {
214
-		DBG("Failed allocating descriptor ring sizeof %lx\n",
214
+		DBG("Failed allocating descriptor ring sizeof %x\n",
215 215
 		    ring->buf_size);
216 216
 		return MTNIC_ERROR;
217 217
 	}
218 218
         memset(ring->buf, 0, ring->buf_size);
219 219
 
220
-	DBG("Allocated %s ring (addr:%p) - buf:%p size:%lx"
221
-	    "buf_size:%lx dma:%lx\n",
220
+	DBG("Allocated %s ring (addr:%p) - buf:%p size:%x"
221
+	    "buf_size:%x dma:%lx\n",
222 222
 	    is_rx ? "Rx" : "Tx", ring, ring->buf, ring->size,
223 223
 	    ring->buf_size, ring->dma);
224 224
 
@@ -262,7 +262,7 @@ mtnic_alloc_ring(struct mtnic_priv *priv, struct mtnic_ring *ring,
262 262
 			((u32) priv->fw.tx_offset[priv->port]) << 8);
263 263
 
264 264
 		/* Map Tx+CQ doorbells */
265
-		DBG("Mapping TxCQ doorbell at offset:0x%lx\n",
265
+		DBG("Mapping TxCQ doorbell at offset:0x%x\n",
266 266
 		    priv->fw.txcq_db_offset);
267 267
 		ring->txcq_db = ioremap(mtnic_pci_dev.dev.bar[2] +
268 268
 				priv->fw.txcq_db_offset, PAGE_SIZE);
@@ -317,9 +317,9 @@ mtnic_alloc_cq(struct net_device *dev, int num, struct mtnic_cq *cq,
317 317
 		return MTNIC_ERROR;
318 318
 	}
319 319
         memset(cq->buf, 0, cq->buf_size);
320
-        DBG("Allocated CQ (addr:%p) - size:%lx buf:%p buf_size:%lx "
320
+        DBG("Allocated CQ (addr:%p) - size:%x buf:%p buf_size:%x "
321 321
 	    "dma:%lx db:%p db_dma:%lx\n"
322
-	    "cqn offset:%lx \n", cq, cq->size, cq->buf,
322
+	    "cqn offset:%x \n", cq, cq->size, cq->buf,
323 323
 	    cq->buf_size, cq->dma, cq->db,
324 324
 	    cq->db_dma, offset_ind);
325 325
 
@@ -570,7 +570,7 @@ mtnic_map_cmd(struct mtnic_priv *priv, u16 op, struct mtnic_pages pages)
570 570
 	len = PAGE_SIZE * pages.num;
571 571
 	pages.buf = (u32 *)umalloc(PAGE_SIZE * (pages.num + 1));
572 572
 	addr = PAGE_SIZE + ((virt_to_bus(pages.buf) & 0xfffff000) + PAGE_SIZE);
573
-	DBG("Mapping pages: size: %lx address: %p\n", pages.num, pages.buf);
573
+	DBG("Mapping pages: size: %x address: %p\n", pages.num, pages.buf);
574 574
 
575 575
 	if (addr & (PAGE_MASK)) {
576 576
 		DBG("Got FW area not aligned to %d (%llx/%x)\n",
@@ -657,7 +657,7 @@ mtnic_OPEN_NIC(struct mtnic_priv *priv)
657 657
 
658 658
 	err = mtnic_cmd(priv, NULL, extra_pages, 0, MTNIC_IF_CMD_OPEN_NIC);
659 659
 	priv->fw.extra_pages.num = be32_to_cpu(*(extra_pages+1));
660
-	DBG("Extra pages num is %lx\n", priv->fw.extra_pages.num);
660
+	DBG("Extra pages num is %x\n", priv->fw.extra_pages.num);
661 661
 	return err;
662 662
 }
663 663
 
@@ -748,7 +748,7 @@ mtnic_CONFIG_CQ(struct mtnic_priv *priv, int port,
748 748
 	config_cq->offset = ((cq->dma) & (PAGE_MASK)) >> 6;
749 749
 	config_cq->db_record_addr_l = cpu_to_be32(cq->db_dma);
750 750
         config_cq->page_address[1] = cpu_to_be32(cq->dma);
751
-	DBG("config cq address: %lx dma_address: %lx"
751
+	DBG("config cq address: %x dma_address: %lx"
752 752
 	    "offset: %d size %d index: %d "
753 753
 	    , config_cq->page_address[1],cq->dma,
754 754
 	    config_cq->offset, config_cq->size, config_cq->cq );
@@ -1115,7 +1115,7 @@ int mtnic_init_card(struct net_device *dev)
1115 1115
 	/* Allocate and map pages worksace */
1116 1116
 	err = mtnic_map_cmd(priv, MTNIC_IF_CMD_MAP_PAGES, priv->fw.extra_pages);
1117 1117
 	if (err) {
1118
-		DBG("Couldn't allocate %lx FW extra pages, aborting.\n",
1118
+		DBG("Couldn't allocate %x FW extra pages, aborting.\n",
1119 1119
 		    priv->fw.extra_pages.num);
1120 1120
 		if (priv->fw.extra_pages.buf)
1121 1121
 			free(priv->fw.extra_pages.buf);
@@ -1503,7 +1503,7 @@ mtnic_transmit( struct net_device *dev, struct io_buffer *iobuf )
1503 1503
 
1504 1504
         index = ring->prod & ring->size_mask;
1505 1505
 	if ((ring->prod - ring->cons) >= ring->size) {
1506
-		DBG("No space left for descriptors!!! cons: %lx prod: %lx\n",
1506
+		DBG("No space left for descriptors!!! cons: %x prod: %x\n",
1507 1507
 		    ring->cons, ring->prod);
1508 1508
 		mdelay(5);
1509 1509
 		return MTNIC_ERROR;/* no space left */
@@ -1690,7 +1690,7 @@ mtnic_probe(struct pci_device *pci,
1690 1690
 	result = ntohl(readl(dev_id));
1691 1691
 	iounmap(dev_id);
1692 1692
         if (result != MTNIC_DEVICE_ID) {
1693
-		DBG("Wrong Devie ID (0x%lx) !!!", result);
1693
+		DBG("Wrong Devie ID (0x%x) !!!", result);
1694 1694
 		return MTNIC_ERROR;
1695 1695
 	}
1696 1696
 

+ 1
- 1
src/drivers/net/mtnic.h Переглянути файл

@@ -376,7 +376,7 @@ struct mtnic_err_buf {
376 376
 
377 377
 struct mtnic_cmd {
378 378
 	void                     *buf;
379
-	u32	                mapping;
379
+	unsigned long             mapping;
380 380
 	u32	 	      	  tbit;
381 381
 };
382 382
 

+ 4
- 4
src/drivers/net/natsemi.c Переглянути файл

@@ -358,7 +358,7 @@ static int natsemi_open (struct net_device *netdev)
358 358
 	}
359 359
 	outl (virt_to_bus (&np->tx[0]),np->ioaddr + TxRingPtr);
360 360
 
361
-	DBG ("Natsemi Tx descriptor loaded with: %#08lx\n",
361
+	DBG ("Natsemi Tx descriptor loaded with: %#08x\n",
362 362
 	     inl (np->ioaddr + TxRingPtr));
363 363
 
364 364
 	/* Setup RX ring
@@ -377,7 +377,7 @@ static int natsemi_open (struct net_device *netdev)
377 377
 	}
378 378
 	outl (virt_to_bus (&np->rx[0]), np->ioaddr + RxRingPtr);
379 379
 
380
-	DBG ("Natsemi Rx descriptor loaded with: %#08lx\n",
380
+	DBG ("Natsemi Rx descriptor loaded with: %#08x\n",
381 381
 	      inl (np->ioaddr + RxRingPtr));		
382 382
 
383 383
 	/* Setup RX Filter 
@@ -401,7 +401,7 @@ static int natsemi_open (struct net_device *netdev)
401 401
 	outl (tx_config, np->ioaddr + TxConfig);
402 402
 	outl (rx_config, np->ioaddr + RxConfig);
403 403
 
404
-	DBG ("Tx config register = %#08lx Rx config register = %#08lx\n", 
404
+	DBG ("Tx config register = %#08x Rx config register = %#08x\n", 
405 405
                inl (np->ioaddr + TxConfig),
406 406
 	       inl (np->ioaddr + RxConfig));
407 407
 
@@ -552,7 +552,7 @@ static void natsemi_poll (struct net_device *netdev)
552 552
 			netdev_rx_err (netdev, NULL, -EINVAL);
553 553
 
554 554
 			DBG ("natsemi_poll: Corrupted packet received!"
555
-			     " Status = %#08lx\n",
555
+			     " Status = %#08x\n",
556 556
 			      np->rx[np->rx_cur].cmdsts);
557 557
 
558 558
 		} else 	{

+ 11
- 11
src/drivers/net/phantom/phantom.c Переглянути файл

@@ -460,11 +460,11 @@ static int phantom_dmesg ( struct phantom_nic *phantom, unsigned int log,
460 460
 	len = phantom_readl ( phantom, UNM_CAM_RAM_DMESG_LEN ( log ) );
461 461
 	tail = phantom_readl ( phantom, UNM_CAM_RAM_DMESG_TAIL ( log ) );
462 462
 	sig = phantom_readl ( phantom, UNM_CAM_RAM_DMESG_SIG ( log ) );
463
-	DBGC ( phantom, "Phantom %p firmware dmesg buffer %d (%08lx-%08lx)\n",
463
+	DBGC ( phantom, "Phantom %p firmware dmesg buffer %d (%08x-%08x)\n",
464 464
 	       phantom, log, head, tail );
465 465
 	assert ( ( head & 0x07 ) == 0 );
466 466
 	if ( sig != UNM_CAM_RAM_DMESG_SIG_MAGIC ) {
467
-		DBGC ( phantom, "Warning: bad signature %08lx (want %08lx)\n",
467
+		DBGC ( phantom, "Warning: bad signature %08x (want %08lx)\n",
468 468
 		       sig, UNM_CAM_RAM_DMESG_SIG_MAGIC );
469 469
 	}
470 470
 
@@ -558,8 +558,8 @@ static int phantom_issue_cmd ( struct phantom_nic *phantom,
558 558
 	/* Issue command */
559 559
 	signature = NX_CDRP_SIGNATURE_MAKE ( phantom->port,
560 560
 					     NXHAL_VERSION );
561
-	DBGC2 ( phantom, "Phantom %p issuing command %08lx (%08lx, %08lx, "
562
-		"%08lx)\n", phantom, command, arg1, arg2, arg3 );
561
+	DBGC2 ( phantom, "Phantom %p issuing command %08x (%08x, %08x, "
562
+		"%08x)\n", phantom, command, arg1, arg2, arg3 );
563 563
 	phantom_writel ( phantom, signature, UNM_NIC_REG_NX_SIGN );
564 564
 	phantom_writel ( phantom, arg1, UNM_NIC_REG_NX_ARG1 );
565 565
 	phantom_writel ( phantom, arg2, UNM_NIC_REG_NX_ARG2 );
@@ -1036,7 +1036,7 @@ static void phantom_poll_link_state ( struct net_device *netdev ) {
1036 1036
 		return;
1037 1037
 
1038 1038
 	/* Record new link state */
1039
-	DBGC ( phantom, "Phantom %p new link state %08lx (was %08lx)\n",
1039
+	DBGC ( phantom, "Phantom %p new link state %08x (was %08x)\n",
1040 1040
 	       phantom, xg_state_p3, phantom->link_state );
1041 1041
 	phantom->link_state = xg_state_p3;
1042 1042
 
@@ -1840,13 +1840,13 @@ static int phantom_init_cmdpeg ( struct phantom_nic *phantom ) {
1840 1840
 		       phantom );
1841 1841
 		sw_reset = phantom_readl ( phantom, UNM_ROMUSB_GLB_SW_RESET );
1842 1842
 		if ( sw_reset != UNM_ROMUSB_GLB_SW_RESET_MAGIC ) {
1843
-			DBGC ( phantom, "Phantom %p reset failed: %08lx\n",
1843
+			DBGC ( phantom, "Phantom %p reset failed: %08x\n",
1844 1844
 			       phantom, sw_reset );
1845 1845
 			return -EIO;
1846 1846
 		}
1847 1847
 	} else {
1848 1848
 		DBGC ( phantom, "Phantom %p coming up from warm boot "
1849
-		       "(%08lx)\n", phantom, cold_boot );
1849
+		       "(%08x)\n", phantom, cold_boot );
1850 1850
 	}
1851 1851
 	/* Clear cold-boot flag */
1852 1852
 	phantom_writel ( phantom, 0, UNM_CAM_RAM_COLD_BOOT );
@@ -1874,7 +1874,7 @@ static int phantom_init_cmdpeg ( struct phantom_nic *phantom ) {
1874 1874
 					       UNM_NIC_REG_CMDPEG_STATE );
1875 1875
 		if ( cmdpeg_state != last_cmdpeg_state ) {
1876 1876
 			DBGC ( phantom, "Phantom %p command PEG state is "
1877
-			       "%08lx after %d seconds...\n",
1877
+			       "%08x after %d seconds...\n",
1878 1878
 			       phantom, cmdpeg_state, retries );
1879 1879
 			last_cmdpeg_state = cmdpeg_state;
1880 1880
 		}
@@ -1889,7 +1889,7 @@ static int phantom_init_cmdpeg ( struct phantom_nic *phantom ) {
1889 1889
 	}
1890 1890
 
1891 1891
 	DBGC ( phantom, "Phantom %p timed out waiting for command PEG to "
1892
-	       "initialise (status %08lx)\n", phantom, cmdpeg_state );
1892
+	       "initialise (status %08x)\n", phantom, cmdpeg_state );
1893 1893
 	return -ETIMEDOUT;
1894 1894
 }
1895 1895
 
@@ -1968,7 +1968,7 @@ static int phantom_init_rcvpeg ( struct phantom_nic *phantom ) {
1968 1968
 					       UNM_NIC_REG_RCVPEG_STATE );
1969 1969
 		if ( rcvpeg_state != last_rcvpeg_state ) {
1970 1970
 			DBGC ( phantom, "Phantom %p receive PEG state is "
1971
-			       "%08lx after %d seconds...\n",
1971
+			       "%08x after %d seconds...\n",
1972 1972
 			       phantom, rcvpeg_state, retries );
1973 1973
 			last_rcvpeg_state = rcvpeg_state;
1974 1974
 		}
@@ -1978,7 +1978,7 @@ static int phantom_init_rcvpeg ( struct phantom_nic *phantom ) {
1978 1978
 	}
1979 1979
 
1980 1980
 	DBGC ( phantom, "Phantom %p timed out waiting for receive PEG to "
1981
-	       "initialise (status %08lx)\n", phantom, rcvpeg_state );
1981
+	       "initialise (status %08x)\n", phantom, rcvpeg_state );
1982 1982
 	return -ETIMEDOUT;
1983 1983
 }
1984 1984
 

+ 2
- 2
src/drivers/net/prism2_plx.c Переглянути файл

@@ -50,8 +50,8 @@ static int prism2_find_plx ( hfa384x_t *hw, struct pci_device *p )
50 50
   /* Fill out hw structure */
51 51
   hw->membase = attr_mem;
52 52
   hw->iobase = iobase;
53
-  printf ( "PLX9052 has local config registers at %#lx\n", plx_lcr );
54
-  printf ( "Prism2 has attribute memory at %#lx and I/O base at %#lx\n", attr_mem, iobase );
53
+  printf ( "PLX9052 has local config registers at %#x\n", plx_lcr );
54
+  printf ( "Prism2 has attribute memory at %#x and I/O base at %#x\n", attr_mem, iobase );
55 55
 
56 56
   /* Search for CIS strings */
57 57
   printf ( "Searching for PCMCIA card...\n" );

+ 18
- 18
src/drivers/net/r8169.c Переглянути файл

@@ -425,7 +425,7 @@ static void rtl8169_get_mac_version(struct rtl8169_private *tp,
425 425
 	DBG ( "tp->mac_version = %d\n", tp->mac_version );
426 426
 
427 427
 	if (p->mask == 0x00000000) {
428
-		DBG ( "unknown MAC (%08lx)\n", reg );
428
+		DBG ( "unknown MAC (%08x)\n", reg );
429 429
 	}
430 430
 }
431 431
 
@@ -1621,17 +1621,17 @@ rtl8169_process_tx_packets ( struct net_device *netdev )
1621 1621
 
1622 1622
 		tx_status = tx_curr_desc->opts1;
1623 1623
 
1624
-		DBG2 ( "Before DescOwn check tx_status: %#08lx\n", tx_status );
1624
+		DBG2 ( "Before DescOwn check tx_status: %#08x\n", tx_status );
1625 1625
 
1626 1626
 		/* if the packet at tx_tail is not owned by hardware it is for us */
1627 1627
 		if ( tx_status & DescOwn )
1628 1628
 			break;
1629 1629
 
1630 1630
 		DBG ( "Transmitted packet.\n" );
1631
-		DBG ( "tp->tx_fill_ctr     = %ld\n", tp->tx_fill_ctr );
1632
-		DBG ( "tp->tx_tail         = %ld\n", tp->tx_tail );
1633
-		DBG ( "tp->tx_curr         = %ld\n", tp->tx_curr );
1634
-		DBG ( "tx_status           = %ld\n", tx_status );
1631
+		DBG ( "tp->tx_fill_ctr     = %d\n", tp->tx_fill_ctr );
1632
+		DBG ( "tp->tx_tail         = %d\n", tp->tx_tail );
1633
+		DBG ( "tp->tx_curr         = %d\n", tp->tx_curr );
1634
+		DBG ( "tx_status           = %d\n", tx_status );
1635 1635
 		DBG ( "tx_curr_desc        = %#08lx\n", virt_to_bus ( tx_curr_desc ) );
1636 1636
 
1637 1637
 		/* Pass packet to core for processing */
@@ -1660,7 +1660,7 @@ rtl8169_populate_rx_descriptor ( struct rtl8169_private *tp, struct RxDesc *rx_d
1660 1660
 {
1661 1661
 	DBGP ( "rtl8169_populate_rx_descriptor\n" );
1662 1662
 
1663
-	DBG ( "Populating rx descriptor %ld\n", index );
1663
+	DBG ( "Populating rx descriptor %d\n", index );
1664 1664
 
1665 1665
 	memset ( rx_desc, 0, sizeof ( *rx_desc ) );
1666 1666
 
@@ -1755,7 +1755,7 @@ rtl8169_process_rx_packets ( struct net_device *netdev )
1755 1755
 
1756 1756
 		rx_status = rx_curr_desc->opts1;
1757 1757
 
1758
-		DBG2 ( "Before DescOwn check rx_status: %#08lx\n", rx_status );
1758
+		DBG2 ( "Before DescOwn check rx_status: %#08x\n", rx_status );
1759 1759
 
1760 1760
 		/* Hardware still owns the descriptor */
1761 1761
 		if ( rx_status & DescOwn )
@@ -1768,9 +1768,9 @@ rtl8169_process_rx_packets ( struct net_device *netdev )
1768 1768
 		rx_len = rx_status & 0x3fff;
1769 1769
 
1770 1770
 		DBG ( "Received packet.\n" );
1771
-		DBG ( "tp->rx_curr         = %ld\n", tp->rx_curr );
1771
+		DBG ( "tp->rx_curr         = %d\n", tp->rx_curr );
1772 1772
 		DBG ( "rx_len              = %d\n", rx_len );
1773
-		DBG ( "rx_status           = %#08lx\n", rx_status );
1773
+		DBG ( "rx_status           = %#08x\n", rx_status );
1774 1774
 		DBG ( "rx_curr_desc        = %#08lx\n", virt_to_bus ( rx_curr_desc ) );
1775 1775
 
1776 1776
 		if ( rx_status & RxRES ) {
@@ -1778,7 +1778,7 @@ rtl8169_process_rx_packets ( struct net_device *netdev )
1778 1778
 			netdev_rx_err ( netdev, tp->rx_iobuf[tp->rx_curr], -EINVAL );
1779 1779
 
1780 1780
 			DBG ( "rtl8169_poll: Corrupted packet received!\n"
1781
-			       " rx_status: %#08lx\n", rx_status );
1781
+			       " rx_status: %#08x\n", rx_status );
1782 1782
 
1783 1783
 		} else 	{
1784 1784
 
@@ -1964,11 +1964,11 @@ rtl8169_transmit ( struct net_device *netdev, struct io_buffer *iobuf )
1964 1964
 
1965 1965
 	tx_curr_desc = tp->tx_base + tp->tx_curr;
1966 1966
 
1967
-	DBG ( "tp->tx_fill_ctr = %ld\n", tp->tx_fill_ctr );
1968
-	DBG ( "tp->tx_curr     = %ld\n", tp->tx_curr );
1967
+	DBG ( "tp->tx_fill_ctr = %d\n", tp->tx_fill_ctr );
1968
+	DBG ( "tp->tx_curr     = %d\n", tp->tx_curr );
1969 1969
 	DBG ( "tx_curr_desc    = %#08lx\n", virt_to_bus ( tx_curr_desc ) );
1970 1970
 	DBG ( "iobuf->data     = %#08lx\n", virt_to_bus ( iobuf->data ) );
1971
-	DBG ( "tx_len          = %ld\n", tx_len );
1971
+	DBG ( "tx_len          = %d\n", tx_len );
1972 1972
 
1973 1973
 	/* Configure current descriptor to transmit supplied packet */
1974 1974
 	tx_curr_desc->addr_hi = 0;
@@ -1981,10 +1981,10 @@ rtl8169_transmit ( struct net_device *netdev, struct io_buffer *iobuf )
1981 1981
 	/* Mark descriptor as owned by NIC */
1982 1982
 	tx_curr_desc->opts1 |= DescOwn;
1983 1983
 
1984
-	DBG ( "tx_curr_desc->opts1   = %#08lx\n", tx_curr_desc->opts1 );
1985
-	DBG ( "tx_curr_desc->opts2   = %#08lx\n", tx_curr_desc->opts2 );
1986
-	DBG ( "tx_curr_desc->addr_hi = %#08lx\n", tx_curr_desc->addr_hi );
1987
-	DBG ( "tx_curr_desc->addr_lo = %#08lx\n", tx_curr_desc->addr_lo );
1984
+	DBG ( "tx_curr_desc->opts1   = %#08x\n", tx_curr_desc->opts1 );
1985
+	DBG ( "tx_curr_desc->opts2   = %#08x\n", tx_curr_desc->opts2 );
1986
+	DBG ( "tx_curr_desc->addr_hi = %#08x\n", tx_curr_desc->addr_hi );
1987
+	DBG ( "tx_curr_desc->addr_lo = %#08x\n", tx_curr_desc->addr_lo );
1988 1988
 
1989 1989
 	RTL_W8 ( TxPoll, NPQ );	/* set polling bit */
1990 1990
 

+ 4
- 4
src/drivers/net/sis900.c Переглянути файл

@@ -695,7 +695,7 @@ sis900_init_rxfilter(struct nic *nic)
695 695
         outl(w, ioaddr + rfdr);
696 696
 
697 697
         if (sis900_debug > 0)
698
-            printf("sis900_init_rxfilter: Receive Filter Addrss[%d]=%lX\n",
698
+            printf("sis900_init_rxfilter: Receive Filter Addrss[%d]=%X\n",
699 699
                    i, inl(ioaddr + rfdr));
700 700
     }
701 701
 
@@ -724,7 +724,7 @@ sis900_init_txd(struct nic *nic __unused)
724 724
     /* load Transmit Descriptor Register */
725 725
     outl(virt_to_bus(&txd), ioaddr + txdp); 
726 726
     if (sis900_debug > 0)
727
-        printf("sis900_init_txd: TX descriptor register loaded with: %lX\n", 
727
+        printf("sis900_init_txd: TX descriptor register loaded with: %X\n", 
728 728
                inl(ioaddr + txdp));
729 729
 }
730 730
 
@@ -760,7 +760,7 @@ sis900_init_rxd(struct nic *nic __unused)
760 760
     outl(virt_to_bus(&rxd[0]), ioaddr + rxdp);
761 761
 
762 762
     if (sis900_debug > 0)
763
-        printf("sis900_init_rxd: RX descriptor register loaded with: %lX\n", 
763
+        printf("sis900_init_rxd: RX descriptor register loaded with: %X\n", 
764 764
                inl(ioaddr + rxdp));
765 765
 
766 766
 }
@@ -1114,7 +1114,7 @@ sis900_transmit(struct nic  *nic,
1114 1114
     /* load Transmit Descriptor Register */
1115 1115
     outl(virt_to_bus(&txd), ioaddr + txdp); 
1116 1116
     if (sis900_debug > 1)
1117
-        printf("sis900_transmit: TX descriptor register loaded with: %lX\n", 
1117
+        printf("sis900_transmit: TX descriptor register loaded with: %X\n", 
1118 1118
                inl(ioaddr + txdp));
1119 1119
 
1120 1120
     memcpy(txb, d, ETH_ALEN);

+ 2
- 2
src/drivers/net/sundance.c Переглянути файл

@@ -689,9 +689,9 @@ static int sundance_probe ( struct nic *nic, struct pci_device *pci ) {
689 689
 	}
690 690
 
691 691
 	/* Reset the chip to erase previous misconfiguration */
692
-	DBG ( "ASIC Control is %#lx\n", inl(BASE + ASICCtrl) );
692
+	DBG ( "ASIC Control is %#x\n", inl(BASE + ASICCtrl) );
693 693
 	outw(0x007f, BASE + ASICCtrl + 2);
694
-	DBG ( "ASIC Control is now %#lx.\n", inl(BASE + ASICCtrl) );
694
+	DBG ( "ASIC Control is now %#x.\n", inl(BASE + ASICCtrl) );
695 695
 
696 696
 	sundance_reset(nic);
697 697
 	if (sdc->an_enable) {

+ 2
- 2
src/drivers/net/tg3.c Переглянути файл

@@ -1460,7 +1460,7 @@ static int tg3_stop_block(struct tg3 *tp, unsigned long ofs, uint32_t enable_bit
1460 1460
 	}
1461 1461
 
1462 1462
 	if (i == MAX_WAIT_CNT) {
1463
-		printf( "tg3_stop_block timed out, ofs=%#lx enable_bit=%3lx\n",
1463
+		printf( "tg3_stop_block timed out, ofs=%#lx enable_bit=%3x\n",
1464 1464
 		       ofs, enable_bit );
1465 1465
 		return -ENODEV;
1466 1466
 	}
@@ -1665,7 +1665,7 @@ static int tg3_restart_fw(struct tg3 *tp, uint32_t state)
1665 1665
 	if (i >= 100000 &&
1666 1666
 		    !(tp->tg3_flags2 & TG3_FLG2_SUN_5704) &&
1667 1667
 		    !(GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5787)) {
1668
-		printf ( "Firmware will not restart magic=%#lx\n",
1668
+		printf ( "Firmware will not restart magic=%#x\n",
1669 1669
 			val );
1670 1670
 		return -ENODEV;
1671 1671
 	}

+ 2
- 2
src/drivers/net/tulip.c Переглянути файл

@@ -1201,7 +1201,7 @@ static void tulip_disable ( struct nic *nic ) {
1201 1201
     outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr + CSR6);
1202 1202
 
1203 1203
     /* Clear the missed-packet counter. */
1204
-    (volatile unsigned long)inl(ioaddr + CSR8);
1204
+    inl(ioaddr + CSR8);
1205 1205
 }
1206 1206
 
1207 1207
 /*********************************************************************/
@@ -1265,7 +1265,7 @@ static int tulip_probe ( struct nic *nic, struct pci_device *pci ) {
1265 1265
     outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr + CSR6);
1266 1266
 
1267 1267
     /* Clear the missed-packet counter. */
1268
-    (volatile unsigned long)inl(ioaddr + CSR8);
1268
+    inl(ioaddr + CSR8);
1269 1269
 
1270 1270
     printf("\n");                /* so we start on a fresh line */
1271 1271
 #ifdef TULIP_DEBUG_WHERE

+ 1
- 1
src/drivers/net/via-velocity.c Переглянути файл

@@ -1234,7 +1234,7 @@ static int velocity_open(struct nic *nic, struct pci_device *pci __unused)
1234 1234
 
1235 1235
 	/* Tx Descriptor needs 64 bytes alignment; */
1236 1236
 	TxPhyAddr = virt_to_bus(vptr->TxDescArrays);
1237
-	printf("Unaligned Address : %lX\n", TxPhyAddr);
1237
+	printf("Unaligned Address : %X\n", TxPhyAddr);
1238 1238
 	diff = 64 - (TxPhyAddr - ((TxPhyAddr >> 6) << 6));
1239 1239
 	TxPhyAddr += diff;
1240 1240
 	vptr->td_rings = (struct tx_desc *) (vptr->TxDescArrays + diff);

+ 3
- 3
src/image/efi_image.c Переглянути файл

@@ -43,7 +43,7 @@ static int efi_image_exec ( struct image *image ) {
43 43
 				       user_to_virt ( image->data, 0 ),
44 44
 				       image->len, &handle ) ) != 0 ) {
45 45
 		/* Not an EFI image */
46
-		DBGC ( image, "EFIIMAGE %p could not load: %lx\n",
46
+		DBGC ( image, "EFIIMAGE %p could not load: %x\n",
47 47
 		       image, efirc );
48 48
 		return -ENOEXEC;
49 49
 	}
@@ -51,7 +51,7 @@ static int efi_image_exec ( struct image *image ) {
51 51
 	/* Start the image */
52 52
 	if ( ( efirc = bs->StartImage ( handle, &exit_data_size,
53 53
 					&exit_data ) ) != 0 ) {
54
-		DBGC ( image, "EFIIMAGE %p returned with status %lx\n",
54
+		DBGC ( image, "EFIIMAGE %p returned with status %x\n",
55 55
 		       image, efirc );
56 56
 		goto done;
57 57
 	}
@@ -81,7 +81,7 @@ static int efi_image_load ( struct image *image ) {
81 81
 				       user_to_virt ( image->data, 0 ),
82 82
 				       image->len, &handle ) ) != 0 ) {
83 83
 		/* Not an EFI image */
84
-		DBGC ( image, "EFIIMAGE %p could not load: %lx\n",
84
+		DBGC ( image, "EFIIMAGE %p could not load: %x\n",
85 85
 		       image, efirc );
86 86
 		return -ENOEXEC;
87 87
 	}

+ 1
- 1
src/image/elf.c Переглянути файл

@@ -72,7 +72,7 @@ static int elf_load_segment ( struct image *image, Elf_Phdr *phdr ) {
72 72
 	}
73 73
 	buffer = phys_to_user ( dest );
74 74
 
75
-	DBG ( "ELF loading segment [%lx,%lx) to [%lx,%lx,%lx)\n",
75
+	DBG ( "ELF loading segment [%x,%x) to [%x,%x,%x)\n",
76 76
 	      phdr->p_offset, ( phdr->p_offset + phdr->p_filesz ),
77 77
 	      phdr->p_paddr, ( phdr->p_paddr + phdr->p_filesz ),
78 78
 	      ( phdr->p_paddr + phdr->p_memsz ) );

+ 1
- 1
src/interface/efi/efi_console.c Переглянути файл

@@ -224,7 +224,7 @@ static int efi_getchar ( void ) {
224 224
 
225 225
 	/* Read key from real EFI console */
226 226
 	if ( ( efirc = conin->ReadKeyStroke ( conin, &key ) ) != 0 ) {
227
-		DBG ( "EFI could not read keystroke: %lx\n", efirc );
227
+		DBG ( "EFI could not read keystroke: %x\n", efirc );
228 228
 		return 0;
229 229
 	}
230 230
 	DBG2 ( "EFI read key stroke with unicode %04x scancode %04x\n",

+ 4
- 4
src/interface/efi/efi_io.c Переглянути файл

@@ -86,7 +86,7 @@ unsigned long long efi_ioread ( volatile void *io_addr, size_t size ) {
86 86
 	if ( ( efirc = read ( cpu_io, efi_width ( size ),
87 87
 			      ( intptr_t ) io_addr, 1,
88 88
 			      ( void * ) &data ) ) != 0 ) {
89
-		DBG ( "EFI I/O read at %p failed: %lx\n", io_addr, efirc );
89
+		DBG ( "EFI I/O read at %p failed: %x\n", io_addr, efirc );
90 90
 		return -1ULL;
91 91
 	}
92 92
 
@@ -111,7 +111,7 @@ void efi_iowrite ( unsigned long long data, volatile void *io_addr,
111 111
 	if ( ( efirc = write ( cpu_io, efi_width ( size ),
112 112
 			       ( intptr_t ) io_addr, 1,
113 113
 			       ( void * ) &data ) ) != 0 ) {
114
-		DBG ( "EFI I/O write at %p failed: %lx\n", io_addr, efirc );
114
+		DBG ( "EFI I/O write at %p failed: %x\n", io_addr, efirc );
115 115
 	}
116 116
 }
117 117
 
@@ -134,7 +134,7 @@ void efi_ioreads ( volatile void *io_addr, void *data,
134 134
 	if ( ( efirc = read ( cpu_io, efi_width ( size ),
135 135
 			      ( intptr_t ) io_addr, count,
136 136
 			      ( void * ) data ) ) != 0 ) {
137
-		DBG ( "EFI I/O string read at %p failed: %lx\n",
137
+		DBG ( "EFI I/O string read at %p failed: %x\n",
138 138
 		      io_addr, efirc );
139 139
 	}
140 140
 }
@@ -158,7 +158,7 @@ void efi_iowrites ( volatile void *io_addr, const void *data,
158 158
 	if ( ( efirc = write ( cpu_io, efi_width ( size ),
159 159
 			       ( intptr_t ) io_addr, count,
160 160
 			       ( void * ) data ) ) != 0 ) {
161
-		DBG ( "EFI I/O write at %p failed: %lx\n",
161
+		DBG ( "EFI I/O write at %p failed: %x\n",
162 162
 		      io_addr, efirc );
163 163
 	}
164 164
 }

+ 2
- 2
src/interface/efi/efi_pci.c Переглянути файл

@@ -46,7 +46,7 @@ int efipci_read ( struct pci_device *pci, unsigned long location,
46 46
 					  efipci_address ( pci, location ), 1,
47 47
 					  value ) ) != 0 ) {
48 48
 		DBG ( "EFIPCI config read from %02x:%02x.%x offset %02lx "
49
-		      "failed: %lx\n", pci->bus, PCI_SLOT ( pci->devfn ),
49
+		      "failed: %x\n", pci->bus, PCI_SLOT ( pci->devfn ),
50 50
 		      PCI_FUNC ( pci->devfn ), EFIPCI_OFFSET ( location ),
51 51
 		      efirc );
52 52
 		return -EIO;
@@ -63,7 +63,7 @@ int efipci_write ( struct pci_device *pci, unsigned long location,
63 63
 					   efipci_address ( pci, location ), 1,
64 64
 					   &value ) ) != 0 ) {
65 65
 		DBG ( "EFIPCI config write to %02x:%02x.%x offset %02lx "
66
-		      "failed: %lx\n", pci->bus, PCI_SLOT ( pci->devfn ),
66
+		      "failed: %x\n", pci->bus, PCI_SLOT ( pci->devfn ),
67 67
 		      PCI_FUNC ( pci->devfn ), EFIPCI_OFFSET ( location ),
68 68
 		      efirc );
69 69
 		return -EIO;

+ 16
- 16
src/interface/efi/efi_snp.c Переглянути файл

@@ -173,7 +173,7 @@ efi_snp_initialize ( EFI_SIMPLE_NETWORK_PROTOCOL *snp,
173 173
 		container_of ( snp, struct efi_snp_device, snp );
174 174
 	int rc;
175 175
 
176
-	DBGC2 ( snpdev, "SNPDEV %p INITIALIZE (%ld extra RX, %ld extra TX)\n",
176
+	DBGC2 ( snpdev, "SNPDEV %p INITIALIZE (%d extra RX, %d extra TX)\n",
177 177
 		snpdev, extra_rx_bufsize, extra_tx_bufsize );
178 178
 
179 179
 	if ( ( rc = netdev_open ( snpdev->netdev ) ) != 0 ) {
@@ -252,7 +252,7 @@ efi_snp_receive_filters ( EFI_SIMPLE_NETWORK_PROTOCOL *snp, UINT32 enable,
252 252
 		container_of ( snp, struct efi_snp_device, snp );
253 253
 	unsigned int i;
254 254
 
255
-	DBGC2 ( snpdev, "SNPDEV %p RECEIVE_FILTERS %08lx&~%08lx%s %ld mcast\n",
255
+	DBGC2 ( snpdev, "SNPDEV %p RECEIVE_FILTERS %08x&~%08x%s %d mcast\n",
256 256
 		snpdev, enable, disable, ( mcast_reset ? " reset" : "" ),
257 257
 		mcast_count );
258 258
 	for ( i = 0 ; i < mcast_count ; i++ ) {
@@ -390,7 +390,7 @@ efi_snp_nvdata ( EFI_SIMPLE_NETWORK_PROTOCOL *snp, BOOLEAN read,
390 390
 	struct efi_snp_device *snpdev =
391 391
 		container_of ( snp, struct efi_snp_device, snp );
392 392
 
393
-	DBGC2 ( snpdev, "SNPDEV %p NVDATA %s %lx+%lx\n", snpdev,
393
+	DBGC2 ( snpdev, "SNPDEV %p NVDATA %s %x+%x\n", snpdev,
394 394
 		( read ? "read" : "write" ), offset, len );
395 395
 	if ( ! read )
396 396
 		DBGC2_HDA ( snpdev, offset, data, len );
@@ -435,7 +435,7 @@ efi_snp_get_status ( EFI_SIMPLE_NETWORK_PROTOCOL *snp,
435 435
 			*interrupts |= EFI_SIMPLE_NETWORK_RECEIVE_INTERRUPT;
436 436
 			snpdev->rx_count_interrupts--;
437 437
 		}
438
-		DBGC2 ( snpdev, " INTS:%02lx", *interrupts );
438
+		DBGC2 ( snpdev, " INTS:%02x", *interrupts );
439 439
 	}
440 440
 
441 441
 	/* TX completions.  It would be possible to design a more
@@ -492,7 +492,7 @@ efi_snp_transmit ( EFI_SIMPLE_NETWORK_PROTOCOL *snp,
492 492
 	int rc;
493 493
 	EFI_STATUS efirc;
494 494
 
495
-	DBGC2 ( snpdev, "SNPDEV %p TRANSMIT %p+%lx", snpdev, data, len );
495
+	DBGC2 ( snpdev, "SNPDEV %p TRANSMIT %p+%x", snpdev, data, len );
496 496
 	if ( ll_header_len ) {
497 497
 		if ( ll_src ) {
498 498
 			DBGC2 ( snpdev, " src %s",
@@ -512,12 +512,12 @@ efi_snp_transmit ( EFI_SIMPLE_NETWORK_PROTOCOL *snp,
512 512
 	if ( ll_header_len ) {
513 513
 		if ( ll_header_len != ll_protocol->ll_header_len ) {
514 514
 			DBGC ( snpdev, "SNPDEV %p TX invalid header length "
515
-			       "%ld\n", snpdev, ll_header_len );
515
+			       "%d\n", snpdev, ll_header_len );
516 516
 			efirc = EFI_INVALID_PARAMETER;
517 517
 			goto err_sanity;
518 518
 		}
519 519
 		if ( len < ll_header_len ) {
520
-			DBGC ( snpdev, "SNPDEV %p invalid packet length %ld\n",
520
+			DBGC ( snpdev, "SNPDEV %p invalid packet length %d\n",
521 521
 			       snpdev, len );
522 522
 			efirc = EFI_BUFFER_TOO_SMALL;
523 523
 			goto err_sanity;
@@ -541,7 +541,7 @@ efi_snp_transmit ( EFI_SIMPLE_NETWORK_PROTOCOL *snp,
541 541
 	/* Allocate buffer */
542 542
 	iobuf = alloc_iob ( len );
543 543
 	if ( ! iobuf ) {
544
-		DBGC ( snpdev, "SNPDEV %p TX could not allocate %ld-byte "
544
+		DBGC ( snpdev, "SNPDEV %p TX could not allocate %d-byte "
545 545
 		       "buffer\n", snpdev, len );
546 546
 		efirc = EFI_DEVICE_ERROR;
547 547
 		goto err_alloc_iob;
@@ -610,7 +610,7 @@ efi_snp_receive ( EFI_SIMPLE_NETWORK_PROTOCOL *snp,
610 610
 	int rc;
611 611
 	EFI_STATUS efirc;
612 612
 
613
-	DBGC2 ( snpdev, "SNPDEV %p RECEIVE %p(+%lx)", snpdev, data, *len );
613
+	DBGC2 ( snpdev, "SNPDEV %p RECEIVE %p(+%x)", snpdev, data, *len );
614 614
 
615 615
 	/* Poll the network device */
616 616
 	efi_snp_poll ( snpdev );
@@ -737,10 +737,10 @@ efi_snp_netdev ( EFI_DRIVER_BINDING_PROTOCOL *driver, EFI_HANDLE device ) {
737 737
 	if ( ( efirc = u.pci->GetLocation ( u.pci, &pci_segment, &pci_bus,
738 738
 					    &pci_dev, &pci_fn ) ) != 0 ) {
739 739
 		DBGC ( driver, "SNPDRV %p device %p could not get PCI "
740
-		       "location: %lx\n", driver, device, efirc );
740
+		       "location: %x\n", driver, device, efirc );
741 741
 		goto out_no_pci_location;
742 742
 	}
743
-	DBGCP ( driver, "SNPDRV %p device %p is PCI %04lx:%02lx:%02lx.%lx\n",
743
+	DBGCP ( driver, "SNPDRV %p device %p is PCI %04x:%02x:%02x.%x\n",
744 744
 		driver, device, pci_segment, pci_bus, pci_dev, pci_fn );
745 745
 
746 746
 	/* Look up corresponding network device */
@@ -786,7 +786,7 @@ efi_snp_snpdev ( EFI_DRIVER_BINDING_PROTOCOL *driver, EFI_HANDLE device ) {
786 786
 					  device,
787 787
 					  EFI_OPEN_PROTOCOL_GET_PROTOCOL))!=0){
788 788
 		DBGC ( driver, "SNPDRV %p device %p could not locate SNP: "
789
-		       "%lx\n", driver, device, efirc );
789
+		       "%x\n", driver, device, efirc );
790 790
 		return NULL;
791 791
 	}
792 792
 
@@ -869,7 +869,7 @@ efi_snp_driver_start ( EFI_DRIVER_BINDING_PROTOCOL *driver,
869 869
 	if ( ( efirc = bs->CreateEvent ( EVT_NOTIFY_WAIT, TPL_NOTIFY,
870 870
 					 efi_snp_wait_for_packet, snpdev,
871 871
 					 &snpdev->snp.WaitForPacket ) ) != 0 ){
872
-		DBGC ( snpdev, "SNPDEV %p could not create event: %lx\n",
872
+		DBGC ( snpdev, "SNPDEV %p could not create event: %x\n",
873 873
 		       snpdev, efirc );
874 874
 		goto err_create_event;
875 875
 	}
@@ -882,7 +882,7 @@ efi_snp_driver_start ( EFI_DRIVER_BINDING_PROTOCOL *driver,
882 882
 	if ( ( efirc = bs->InstallProtocolInterface ( &device,
883 883
 				&efi_simple_network_protocol_guid,
884 884
 				EFI_NATIVE_INTERFACE, &snpdev->snp ) ) != 0 ) {
885
-		DBGC ( snpdev, "SNPDEV %p could not install protocol: %lx\n",
885
+		DBGC ( snpdev, "SNPDEV %p could not install protocol: %x\n",
886 886
 		       snpdev, efirc );
887 887
 		goto err_install_protocol_interface;
888 888
 	}
@@ -922,7 +922,7 @@ efi_snp_driver_stop ( EFI_DRIVER_BINDING_PROTOCOL *driver,
922 922
 	EFI_BOOT_SERVICES *bs = efi_systab->BootServices;
923 923
 	struct efi_snp_device *snpdev;
924 924
 
925
-	DBGCP ( driver, "SNPDRV %p DRIVER_STOP %p (%ld %p)\n",
925
+	DBGCP ( driver, "SNPDRV %p DRIVER_STOP %p (%d %p)\n",
926 926
 		driver, device, num_children, children );
927 927
 
928 928
 	/* Locate SNP device */
@@ -970,7 +970,7 @@ int efi_snp_install ( void ) {
970 970
 					EFI_NATIVE_INTERFACE,
971 971
 					driver ) ) != 0 ) {
972 972
 		DBGC ( driver, "SNPDRV %p could not install driver binding: "
973
-		       "%lx\n", driver, efirc );
973
+		       "%x\n", driver, efirc );
974 974
 		return EFIRC_TO_RC ( efirc );
975 975
 	}
976 976
 

+ 2
- 2
src/interface/efi/efi_timer.c Переглянути файл

@@ -53,7 +53,7 @@ static void efi_udelay ( unsigned long usecs ) {
53 53
 	EFI_STATUS efirc;
54 54
 
55 55
 	if ( ( efirc = bs->Stall ( usecs ) ) != 0 ) {
56
-		DBG ( "EFI could not delay for %ldus: %lx\n",
56
+		DBG ( "EFI could not delay for %ldus: %x\n",
57 57
 		      usecs, efirc );
58 58
 		/* Probably screwed */
59 59
 	}
@@ -71,7 +71,7 @@ static unsigned long efi_currticks ( void ) {
71 71
 	/* Read CPU timer 0 (TSC) */
72 72
 	if ( ( efirc = cpu_arch->GetTimerValue ( cpu_arch, 0, &time,
73 73
 						 NULL ) ) != 0 ) {
74
-		DBG ( "EFI could not read CPU timer: %lx\n", efirc );
74
+		DBG ( "EFI could not read CPU timer: %x\n", efirc );
75 75
 		/* Probably screwed */
76 76
 		return -1UL;
77 77
 	}

+ 2
- 2
src/interface/efi/efi_umalloc.c Переглянути файл

@@ -56,7 +56,7 @@ static userptr_t efi_urealloc ( userptr_t old_ptr, size_t new_size ) {
56 56
 						   EfiBootServicesData,
57 57
 						   new_pages,
58 58
 						   &phys_addr ) ) != 0 ) {
59
-			DBG ( "EFI could not allocate %d pages: %lx\n",
59
+			DBG ( "EFI could not allocate %d pages: %x\n",
60 60
 			      new_pages, efirc );
61 61
 			return UNULL;
62 62
 		}
@@ -81,7 +81,7 @@ static userptr_t efi_urealloc ( userptr_t old_ptr, size_t new_size ) {
81 81
 		old_pages = ( EFI_SIZE_TO_PAGES ( old_size ) + 1 );
82 82
 		phys_addr = user_to_phys ( old_ptr, -EFI_PAGE_SIZE );
83 83
 		if ( ( efirc = bs->FreePages ( phys_addr, old_pages ) ) != 0 ){
84
-			DBG ( "EFI could not free %d pages at %llx: %lx\n",
84
+			DBG ( "EFI could not free %d pages at %llx: %x\n",
85 85
 			      old_pages, phys_addr, efirc );
86 86
 			/* Not fatal; we have leaked memory but successfully
87 87
 			 * allocated (if asked to do so).

+ 5
- 5
src/net/tcp.c Переглянути файл

@@ -483,7 +483,7 @@ static int tcp_xmit ( struct tcp_connection *tcp, int force_send ) {
483 483
 	tcphdr->csum = tcpip_chksum ( iobuf->data, iob_len ( iobuf ) );
484 484
 
485 485
 	/* Dump header */
486
-	DBGC ( tcp, "TCP %p TX %d->%d %08lx..%08lx           %08lx %4zd",
486
+	DBGC ( tcp, "TCP %p TX %d->%d %08x..%08x           %08x %4zd",
487 487
 	       tcp, ntohs ( tcphdr->src ), ntohs ( tcphdr->dest ),
488 488
 	       ntohl ( tcphdr->seq ), ( ntohl ( tcphdr->seq ) + seq_len ),
489 489
 	       ntohl ( tcphdr->ack ), len );
@@ -564,7 +564,7 @@ static int tcp_xmit_reset ( struct tcp_connection *tcp,
564 564
 	tcphdr->csum = tcpip_chksum ( iobuf->data, iob_len ( iobuf ) );
565 565
 
566 566
 	/* Dump header */
567
-	DBGC ( tcp, "TCP %p TX %d->%d %08lx..%08lx           %08lx %4d",
567
+	DBGC ( tcp, "TCP %p TX %d->%d %08x..%08x           %08x %4d",
568 568
 	       tcp, ntohs ( tcphdr->src ), ntohs ( tcphdr->dest ),
569 569
 	       ntohl ( tcphdr->seq ), ( ntohl ( tcphdr->seq ) ),
570 570
 	       ntohl ( tcphdr->ack ), 0 );
@@ -702,8 +702,8 @@ static int tcp_rx_ack ( struct tcp_connection *tcp, uint32_t ack,
702 702
 
703 703
 	/* Ignore duplicate or out-of-range ACK */
704 704
 	if ( ack_len > tcp->snd_sent ) {
705
-		DBGC ( tcp, "TCP %p received ACK for [%08lx,%08lx), "
706
-		       "sent only [%08lx,%08lx)\n", tcp, tcp->snd_seq,
705
+		DBGC ( tcp, "TCP %p received ACK for [%08x,%08x), "
706
+		       "sent only [%08x,%08x)\n", tcp, tcp->snd_seq,
707 707
 		       ( tcp->snd_seq + ack_len ), tcp->snd_seq,
708 708
 		       ( tcp->snd_seq + tcp->snd_sent ) );
709 709
 		return -EINVAL;
@@ -894,7 +894,7 @@ static int tcp_rx ( struct io_buffer *iobuf,
894 894
 	len = iob_len ( iobuf );
895 895
 
896 896
 	/* Dump header */
897
-	DBGC ( tcp, "TCP %p RX %d<-%d           %08lx %08lx..%08lx %4zd",
897
+	DBGC ( tcp, "TCP %p RX %d<-%d           %08x %08x..%08x %4zd",
898 898
 	       tcp, ntohs ( tcphdr->dest ), ntohs ( tcphdr->src ),
899 899
 	       ntohl ( tcphdr->ack ), ntohl ( tcphdr->seq ),
900 900
 	       ( ntohl ( tcphdr->seq ) + len +

+ 1
- 1
src/net/tcp/iscsi.c Переглянути файл

@@ -1305,7 +1305,7 @@ static int iscsi_rx_bhs ( struct iscsi_session *iscsi, const void *data,
1305 1305
 			  size_t len, size_t remaining __unused ) {
1306 1306
 	memcpy ( &iscsi->rx_bhs.bytes[iscsi->rx_offset], data, len );
1307 1307
 	if ( ( iscsi->rx_offset + len ) >= sizeof ( iscsi->rx_bhs ) ) {
1308
-		DBGC2 ( iscsi, "iSCSI %p received PDU opcode %#x len %#lx\n",
1308
+		DBGC2 ( iscsi, "iSCSI %p received PDU opcode %#x len %#x\n",
1309 1309
 			iscsi, iscsi->rx_bhs.common.opcode,
1310 1310
 			ISCSI_DATA_LEN ( iscsi->rx_bhs.common.lengths ) );
1311 1311
 	}

Завантаження…
Відмінити
Зберегти