Browse Source

[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 years ago
parent
commit
b59e0cc56e
45 changed files with 157 additions and 157 deletions
  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 View File

12
 			      "addr32 leal 4(%%esp), %%esp\n\t"
12
 			      "addr32 leal 4(%%esp), %%esp\n\t"
13
 			      "ret\n\t" ) : : );
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
 		 "CS=%04x SS=%04x DS=%04x ES=%04x FS=%04x GS=%04x\n",
17
 		 "CS=%04x SS=%04x DS=%04x ES=%04x FS=%04x GS=%04x\n",
18
 		 ix86->regs.eax, ix86->regs.ebx, ix86->regs.ecx,
18
 		 ix86->regs.eax, ix86->regs.ebx, ix86->regs.ecx,
19
 		 ix86->regs.edx, ix86->regs.esi, ix86->regs.edi,
19
 		 ix86->regs.edx, ix86->regs.esi, ix86->regs.edi,

+ 1
- 1
src/arch/i386/drivers/net/undinet.c View File

701
 				   &undi_iface,
701
 				   &undi_iface,
702
 				   sizeof ( undi_iface ) ) ) != 0 )
702
 				   sizeof ( undi_iface ) ) ) != 0 )
703
 		goto err_undi_get_iface_info;
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
 	       undinic, undi_iface.IfaceType, undi_iface.LinkSpeed );
705
 	       undinic, undi_iface.IfaceType, undi_iface.LinkSpeed );
706
 	if ( strncmp ( ( ( char * ) undi_iface.IfaceType ), "Etherboot",
706
 	if ( strncmp ( ( ( char * ) undi_iface.IfaceType ), "Etherboot",
707
 		       sizeof ( undi_iface.IfaceType ) ) == 0 ) {
707
 		       sizeof ( undi_iface.IfaceType ) ) == 0 ) {

+ 2
- 2
src/arch/i386/drivers/net/undirom.c View File

52
 			 sizeof ( undi_rom_id ) );
52
 			 sizeof ( undi_rom_id ) );
53
 	if ( undi_rom_id.Signature != UNDI_ROM_ID_SIGNATURE ) {
53
 	if ( undi_rom_id.Signature != UNDI_ROM_ID_SIGNATURE ) {
54
 		DBGC ( undirom, "UNDIROM %p has bad PXE ROM ID signature "
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
 		return -EINVAL;
56
 		return -EINVAL;
57
 	}
57
 	}
58
 
58
 
94
 			 sizeof ( pcir_header ) );
94
 			 sizeof ( pcir_header ) );
95
 	if ( pcir_header.signature != PCIR_SIGNATURE ) {
95
 	if ( pcir_header.signature != PCIR_SIGNATURE ) {
96
 		DBGC ( undirom, "UNDIROM %p has bad PCI expansion header "
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
 		return -EINVAL;
98
 		return -EINVAL;
99
 	}
99
 	}
100
 
100
 

+ 1
- 1
src/arch/i386/firmware/pcbios/memmap.c View File

210
 			if ( e820buf.attrs & E820_ATTR_NONVOLATILE )
210
 			if ( e820buf.attrs & E820_ATTR_NONVOLATILE )
211
 				DBG ( ", non-volatile" );
211
 				DBG ( ", non-volatile" );
212
 			if ( e820buf.attrs & E820_ATTR_UNKNOWN )
212
 			if ( e820buf.attrs & E820_ATTR_UNKNOWN )
213
-				DBG ( ", other [%08lx]", e820buf.attrs );
213
+				DBG ( ", other [%08x]", e820buf.attrs );
214
 			DBG ( ")" );
214
 			DBG ( ")" );
215
 		}
215
 		}
216
 		DBG ( "\n" );
216
 		DBG ( "\n" );

+ 1
- 1
src/arch/i386/image/bzimage.c View File

400
 	copy_from_user ( bzhdr, image->data, BZI_HDR_OFFSET,
400
 	copy_from_user ( bzhdr, image->data, BZI_HDR_OFFSET,
401
 			 sizeof ( *bzhdr ) );
401
 			 sizeof ( *bzhdr ) );
402
 	if ( bzhdr->header != BZI_SIGNATURE ) {
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
 		       image, bzhdr->header );
404
 		       image, bzhdr->header );
405
 		return -ENOEXEC;
405
 		return -ENOEXEC;
406
 	}
406
 	}

+ 3
- 3
src/arch/i386/image/multiboot.c View File

220
 
220
 
221
 	/* Dump module configuration */
221
 	/* Dump module configuration */
222
 	for ( i = 0 ; i < count ; i++ ) {
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
 		       image, i, modules[i].mod_start,
224
 		       image, i, modules[i].mod_start,
225
 		       modules[i].mod_end );
225
 		       modules[i].mod_end );
226
 	}
226
 	}
418
 		       image );
418
 		       image );
419
 		return rc;
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
 	       image, hdr.mb.flags );
422
 	       image, hdr.mb.flags );
423
 
423
 
424
 	/* This is a multiboot image, valid or otherwise */
424
 	/* This is a multiboot image, valid or otherwise */
427
 
427
 
428
 	/* Abort if we detect flags that we cannot support */
428
 	/* Abort if we detect flags that we cannot support */
429
 	if ( hdr.mb.flags & MB_UNSUPPORTED_FLAGS ) {
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
 		       image, ( hdr.mb.flags & MB_UNSUPPORTED_FLAGS ) );
431
 		       image, ( hdr.mb.flags & MB_UNSUPPORTED_FLAGS ) );
432
 		return -ENOTSUP;
432
 		return -ENOTSUP;
433
 	}
433
 	}

+ 2
- 2
src/arch/i386/include/bits/stdint.h View File

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

+ 1
- 1
src/arch/i386/include/gdbmach.h View File

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

+ 1
- 1
src/arch/i386/interface/pxe/pxe_tftp.c View File

485
 				    *tftp_read_file ) {
485
 				    *tftp_read_file ) {
486
 	int rc;
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
 	      tftp_read_file->BufferSize );
489
 	      tftp_read_file->BufferSize );
490
 
490
 
491
 	/* Open TFTP file */
491
 	/* Open TFTP file */

+ 2
- 2
src/core/debug.c View File

106
 					 virt_to_phys ( region + len ) );
106
 					 virt_to_phys ( region + len ) );
107
 			}
107
 			}
108
 			in_corruption = 1;
108
 			in_corruption = 1;
109
-			printf ( "--- offset %#lx ", offset );
109
+			printf ( "--- offset %#x ", offset );
110
 		} else if ( ( in_corruption != 0 ) &&
110
 		} else if ( ( in_corruption != 0 ) &&
111
 			    ( test == GUARD_SYMBOL ) ) {
111
 			    ( test == GUARD_SYMBOL ) ) {
112
 			/* End of corruption */
112
 			/* End of corruption */
113
 			in_corruption = 0;
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 View File

36
 char * uuid_ntoa ( union uuid *uuid ) {
36
 char * uuid_ntoa ( union uuid *uuid ) {
37
 	static char buf[37]; /* "00000000-0000-0000-0000-000000000000" */
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
 		  be32_to_cpu ( uuid->canonical.a ),
40
 		  be32_to_cpu ( uuid->canonical.a ),
41
 		  be16_to_cpu ( uuid->canonical.b ),
41
 		  be16_to_cpu ( uuid->canonical.b ),
42
 		  be16_to_cpu ( uuid->canonical.c ),
42
 		  be16_to_cpu ( uuid->canonical.c ),

+ 1
- 1
src/drivers/bus/isapnp.c View File

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
 #define ISAPNP_CARD_ID_DATA(identifier)					  \
88
 #define ISAPNP_CARD_ID_DATA(identifier)					  \
89
 	(identifier)->vendor_id, (identifier)->prod_id,			  \
89
 	(identifier)->vendor_id, (identifier)->prod_id,			  \
90
 	isa_id_string ( (identifier)->vendor_id, (identifier)->prod_id ), \
90
 	isa_id_string ( (identifier)->vendor_id, (identifier)->prod_id ), \

+ 1
- 1
src/drivers/bus/pci.c View File

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

+ 4
- 4
src/drivers/infiniband/arbel.c View File

992
 				  union arbelprm_doorbell_register *db_reg,
992
 				  union arbelprm_doorbell_register *db_reg,
993
 				  unsigned int offset ) {
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
 		arbel, db_reg->dword[0], db_reg->dword[1],
996
 		arbel, db_reg->dword[0], db_reg->dword[1],
997
 		virt_to_phys ( arbel->uar + offset ) );
997
 		virt_to_phys ( arbel->uar + offset ) );
998
 
998
 
1182
 	if ( opcode >= ARBEL_OPCODE_RECV_ERROR ) {
1182
 	if ( opcode >= ARBEL_OPCODE_RECV_ERROR ) {
1183
 		/* "s" field is not valid for error opcodes */
1183
 		/* "s" field is not valid for error opcodes */
1184
 		is_send = ( opcode == ARBEL_OPCODE_SEND_ERROR );
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
 		       arbel, cq->cqn, MLX_GET ( &cqe->error, syndrome ),
1186
 		       arbel, cq->cqn, MLX_GET ( &cqe->error, syndrome ),
1187
 		       MLX_GET ( &cqe->error, vendor_code ) );
1187
 		       MLX_GET ( &cqe->error, vendor_code ) );
1188
 		rc = -EIO;
1188
 		rc = -EIO;
1492
 
1492
 
1493
 		/* Ring doorbell */
1493
 		/* Ring doorbell */
1494
 		MLX_FILL_1 ( &db_reg.ci, 0, ci, arbel_eq->next_idx );
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
 			virt_to_phys ( arbel_eq->doorbell ),
1496
 			virt_to_phys ( arbel_eq->doorbell ),
1497
 			db_reg.dword[0] );
1497
 			db_reg.dword[0] );
1498
 		writel ( db_reg.dword[0], arbel_eq->doorbell );
1498
 		writel ( db_reg.dword[0], arbel_eq->doorbell );
1696
 		       arbel, strerror ( rc ) );
1696
 		       arbel, strerror ( rc ) );
1697
 		goto err_query_fw;
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
 	       MLX_GET ( &fw, fw_rev_major ), MLX_GET ( &fw, fw_rev_minor ),
1700
 	       MLX_GET ( &fw, fw_rev_major ), MLX_GET ( &fw, fw_rev_minor ),
1701
 	       MLX_GET ( &fw, fw_rev_subminor ) );
1701
 	       MLX_GET ( &fw, fw_rev_subminor ) );
1702
 	fw_pages = MLX_GET ( &fw, fw_pages );
1702
 	fw_pages = MLX_GET ( &fw, fw_pages );

+ 4
- 4
src/drivers/infiniband/hermon.c View File

1086
 
1086
 
1087
 	/* Ring doorbell register */
1087
 	/* Ring doorbell register */
1088
 	MLX_FILL_1 ( &db_reg.send, 0, qn, qp->qpn );
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
 		virt_to_phys ( hermon_send_wq->doorbell ), db_reg.dword[0] );
1090
 		virt_to_phys ( hermon_send_wq->doorbell ), db_reg.dword[0] );
1091
 	writel ( db_reg.dword[0], ( hermon_send_wq->doorbell ) );
1091
 	writel ( db_reg.dword[0], ( hermon_send_wq->doorbell ) );
1092
 
1092
 
1172
 	if ( opcode >= HERMON_OPCODE_RECV_ERROR ) {
1172
 	if ( opcode >= HERMON_OPCODE_RECV_ERROR ) {
1173
 		/* "s" field is not valid for error opcodes */
1173
 		/* "s" field is not valid for error opcodes */
1174
 		is_send = ( opcode == HERMON_OPCODE_SEND_ERROR );
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
 		       hermon, cq->cqn, MLX_GET ( &cqe->error, syndrome ),
1176
 		       hermon, cq->cqn, MLX_GET ( &cqe->error, syndrome ),
1177
 		       MLX_GET ( &cqe->error, vendor_error_syndrome ) );
1177
 		       MLX_GET ( &cqe->error, vendor_error_syndrome ) );
1178
 		rc = -EIO;
1178
 		rc = -EIO;
1473
 		/* Ring doorbell */
1473
 		/* Ring doorbell */
1474
 		MLX_FILL_1 ( &db_reg.event, 0,
1474
 		MLX_FILL_1 ( &db_reg.event, 0,
1475
 			     ci, ( hermon_eq->next_idx & 0x00ffffffUL ) );
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
 			virt_to_phys ( hermon_eq->doorbell ),
1477
 			virt_to_phys ( hermon_eq->doorbell ),
1478
 			db_reg.dword[0] );
1478
 			db_reg.dword[0] );
1479
 		writel ( db_reg.dword[0], hermon_eq->doorbell );
1479
 		writel ( db_reg.dword[0], hermon_eq->doorbell );
1714
 		       hermon, strerror ( rc ) );
1714
 		       hermon, strerror ( rc ) );
1715
 		goto err_query_fw;
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
 	       MLX_GET ( &fw, fw_rev_major ), MLX_GET ( &fw, fw_rev_minor ),
1718
 	       MLX_GET ( &fw, fw_rev_major ), MLX_GET ( &fw, fw_rev_minor ),
1719
 	       MLX_GET ( &fw, fw_rev_subminor ) );
1719
 	       MLX_GET ( &fw, fw_rev_subminor ) );
1720
 	fw_pages = MLX_GET ( &fw, fw_pages );
1720
 	fw_pages = MLX_GET ( &fw, fw_pages );

+ 1
- 1
src/drivers/infiniband/ib_packet.c View File

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
 		ibdev, lid,
226
 		ibdev, lid,
227
 		( IB_LID_MULTICAST( lid ) ? ( qp ? (*qp)->qpn : -1UL ) : qpn ),
227
 		( IB_LID_MULTICAST( lid ) ? ( qp ? (*qp)->qpn : -1UL ) : qpn ),
228
 		av->lid, av->qpn, ntohl ( deth->qkey ) );
228
 		av->lid, av->qpn, ntohl ( deth->qkey ) );

+ 1
- 1
src/drivers/infiniband/ib_sma.c View File

269
 	int rc;
269
 	int rc;
270
 
270
 
271
 	DBGC ( sma, "SMA %p received SMP with bv=%02x mc=%02x cv=%02x "
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
 	       hdr->mgmt_class, hdr->class_version, hdr->method,
273
 	       hdr->mgmt_class, hdr->class_version, hdr->method,
274
 	       ntohs ( hdr->attr_id ), ntohl ( hdr->attr_mod ) );
274
 	       ntohs ( hdr->attr_id ), ntohl ( hdr->attr_mod ) );
275
 	DBGC2_HDA ( sma, 0, mad, sizeof ( *mad ) );
275
 	DBGC2_HDA ( sma, 0, mad, sizeof ( *mad ) );

+ 1
- 1
src/drivers/infiniband/ib_smc.c View File

156
 		return rc;
156
 		return rc;
157
 	ibdev->pkey = ntohs ( smp->pkey_table.pkey[0] );
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
 	       htonl ( ibdev->gid.u.dwords[0] ),
160
 	       htonl ( ibdev->gid.u.dwords[0] ),
161
 	       htonl ( ibdev->gid.u.dwords[1] ),
161
 	       htonl ( ibdev->gid.u.dwords[1] ),
162
 	       htonl ( ibdev->gid.u.dwords[2] ),
162
 	       htonl ( ibdev->gid.u.dwords[2] ),

+ 2
- 2
src/drivers/infiniband/linda.c View File

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

+ 1
- 1
src/drivers/net/3c515.c View File

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
 	      inl(nic->ioaddr + 0x2002), inw(nic->ioaddr + 0x2000) );
644
 	      inl(nic->ioaddr + 0x2002), inw(nic->ioaddr + 0x2000) );
645
 	corkscrew_found_device(nic->ioaddr, nic->irqno, CORKSCREW_ID,
645
 	corkscrew_found_device(nic->ioaddr, nic->irqno, CORKSCREW_ID,
646
 			       options, nic);
646
 			       options, nic);

+ 2
- 2
src/drivers/net/davicom.c View File

630
   outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr + CSR6);
630
   outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr + CSR6);
631
 
631
 
632
   /* Clear the missed-packet counter. */
632
   /* Clear the missed-packet counter. */
633
-  (volatile unsigned long)inl(ioaddr + CSR8);
633
+  inl(ioaddr + CSR8);
634
 }
634
 }
635
 
635
 
636
 
636
 
676
   outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr + CSR6);
676
   outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr + CSR6);
677
 
677
 
678
   /* Clear the missed-packet counter. */
678
   /* Clear the missed-packet counter. */
679
-  (volatile unsigned long)inl(ioaddr + CSR8);
679
+  inl(ioaddr + CSR8);
680
 
680
 
681
   /* Get MAC Address */
681
   /* Get MAC Address */
682
   /* read EEPROM data */
682
   /* read EEPROM data */

+ 15
- 15
src/drivers/net/e1000/e1000.c View File

258
 	E1000_WRITE_REG ( hw, TDBAL, virt_to_bus ( adapter->tx_base ) );
258
 	E1000_WRITE_REG ( hw, TDBAL, virt_to_bus ( adapter->tx_base ) );
259
 	E1000_WRITE_REG ( hw, TDLEN, adapter->tx_ring_size );
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
 	/* Setup the HW Tx Head and Tail descriptor pointers */
264
 	/* Setup the HW Tx Head and Tail descriptor pointers */
265
 	E1000_WRITE_REG ( hw, TDH, 0 );
265
 	E1000_WRITE_REG ( hw, TDH, 0 );
385
 	E1000_WRITE_REG ( hw, RCTL, rctl );
385
 	E1000_WRITE_REG ( hw, RCTL, rctl );
386
 	E1000_WRITE_FLUSH ( hw );
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
 		E1000_TXD_CMD_IFCS | iob_len ( iobuf );
577
 		E1000_TXD_CMD_IFCS | iob_len ( iobuf );
578
 	tx_curr_desc->upper.data = 0;
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
 	      tx_curr, virt_to_bus ( iobuf->data ), iob_len ( iobuf ) );
581
 	      tx_curr, virt_to_bus ( iobuf->data ), iob_len ( iobuf ) );
582
 	      
582
 	      
583
 	/* Point to next free descriptor */
583
 	/* Point to next free descriptor */
620
 	if ( ! icr )
620
 	if ( ! icr )
621
 		return;
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
 	/* Check status of transmitted packets
625
 	/* Check status of transmitted packets
626
 	 */
626
 	 */
635
 		if ( ! ( tx_status & E1000_TXD_STAT_DD ) )
635
 		if ( ! ( tx_status & E1000_TXD_STAT_DD ) )
636
 			break;
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
 	    	      adapter->tx_head, adapter->tx_tail, tx_status );
639
 	    	      adapter->tx_head, adapter->tx_tail, tx_status );
640
 
640
 
641
 		if ( tx_status & ( E1000_TXD_STAT_EC | E1000_TXD_STAT_LC | 
641
 		if ( tx_status & ( E1000_TXD_STAT_EC | E1000_TXD_STAT_LC | 
642
 				   E1000_TXD_STAT_TU ) ) {
642
 				   E1000_TXD_STAT_TU ) ) {
643
 			netdev_tx_complete_err ( netdev, adapter->tx_iobuf[i], -EINVAL );
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
 			      tx_status );
645
 			      tx_status );
646
 		} else {
646
 		} else {
647
 			netdev_tx_complete ( netdev, adapter->tx_iobuf[i] );
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
 			      tx_status );
649
 			      tx_status );
650
 		}
650
 		}
651
 
651
 
667
 			          ( i * sizeof ( *adapter->rx_base ) ); 
667
 			          ( i * sizeof ( *adapter->rx_base ) ); 
668
 		rx_status = rx_curr_desc->status;
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
 		if ( ! ( rx_status & E1000_RXD_STAT_DD ) )
672
 		if ( ! ( rx_status & E1000_RXD_STAT_DD ) )
673
 			break;
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
 		rx_len = rx_curr_desc->length;
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
                       i, rx_status, rx_len );
680
                       i, rx_status, rx_len );
681
                 
681
                 
682
                 rx_err = rx_curr_desc->errors;
682
                 rx_err = rx_curr_desc->errors;
685
 		
685
 		
686
 			netdev_rx_err ( netdev, NULL, -EINVAL );
686
 			netdev_rx_err ( netdev, NULL, -EINVAL );
687
 			DBG ( "e1000_poll: Corrupted packet received!"
687
 			DBG ( "e1000_poll: Corrupted packet received!"
688
-			      " rx_err: %#08lx\n", rx_err );
688
+			      " rx_err: %#08x\n", rx_err );
689
 		} else 	{
689
 		} else 	{
690
 		
690
 		
691
 			/* If unable allocate space for this packet,
691
 			/* If unable allocate space for this packet,
962
 
962
 
963
 	e1000_configure_rx ( adapter );
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
 	return 0;
967
 	return 0;
968
 
968
 

+ 7
- 7
src/drivers/net/e1000/e1000_hw.c View File

1429
         DEBUGOUT("Error, did not detect valid phy.\n");
1429
         DEBUGOUT("Error, did not detect valid phy.\n");
1430
         return ret_val;
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
     /* Set PHY to class A mode (if necessary) */
1434
     /* Set PHY to class A mode (if necessary) */
1435
     ret_val = e1000_set_phy_mode(hw);
1435
     ret_val = e1000_set_phy_mode(hw);
3551
     DEBUGFUNC("e1000_read_phy_reg_ex");
3551
     DEBUGFUNC("e1000_read_phy_reg_ex");
3552
 
3552
 
3553
     if (reg_addr > MAX_PHY_REG_ADDRESS) {
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
         return -E1000_ERR_PARAM;
3555
         return -E1000_ERR_PARAM;
3556
     }
3556
     }
3557
 
3557
 
3689
     DEBUGFUNC("e1000_write_phy_reg_ex");
3689
     DEBUGFUNC("e1000_write_phy_reg_ex");
3690
 
3690
 
3691
     if (reg_addr > MAX_PHY_REG_ADDRESS) {
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
         return -E1000_ERR_PARAM;
3693
         return -E1000_ERR_PARAM;
3694
     }
3694
     }
3695
 
3695
 
4141
     phy_init_status = e1000_set_phy_type(hw);
4141
     phy_init_status = e1000_set_phy_type(hw);
4142
 
4142
 
4143
     if ((match) && (phy_init_status == E1000_SUCCESS)) {
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
         return E1000_SUCCESS;
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
     return -E1000_ERR_PHY;
4148
     return -E1000_ERR_PHY;
4149
 }
4149
 }
4150
 
4150
 
8795
     int32_t error = E1000_SUCCESS;
8795
     int32_t error = E1000_SUCCESS;
8796
     int32_t program_retries = 0;
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
     error = e1000_write_ich8_byte(hw, index, byte);
8800
     error = e1000_write_ich8_byte(hw, index, byte);
8801
 
8801
 
8802
     if (error != E1000_SUCCESS) {
8802
     if (error != E1000_SUCCESS) {
8803
         for (program_retries = 0; program_retries < 100; program_retries++) {
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
             error = e1000_write_ich8_byte(hw, index, byte);
8805
             error = e1000_write_ich8_byte(hw, index, byte);
8806
             udelay(100);
8806
             udelay(100);
8807
             if (error == E1000_SUCCESS)
8807
             if (error == E1000_SUCCESS)

+ 2
- 2
src/drivers/net/ipoib.c View File

219
 	peer->key = key;
219
 	peer->key = key;
220
 	peer->mac.qpn = htonl ( qpn );
220
 	peer->mac.qpn = htonl ( qpn );
221
 	memcpy ( &peer->mac.gid, gid, sizeof ( peer->mac.gid ) );
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
 	      peer->key, htonl ( gid->u.dwords[0] ),
223
 	      peer->key, htonl ( gid->u.dwords[0] ),
224
 	      htonl ( gid->u.dwords[1] ), htonl ( gid->u.dwords[2] ),
224
 	      htonl ( gid->u.dwords[1] ), htonl ( gid->u.dwords[2] ),
225
 	      htonl ( gid->u.dwords[3] ), qpn );
225
 	      htonl ( gid->u.dwords[3] ), qpn );
313
 	static char buf[45];
313
 	static char buf[45];
314
 	const struct ipoib_mac *mac = ll_addr;
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
 		   htonl ( mac->qpn ), htonl ( mac->gid.u.dwords[0] ),
317
 		   htonl ( mac->qpn ), htonl ( mac->gid.u.dwords[0] ),
318
 		   htonl ( mac->gid.u.dwords[1] ),
318
 		   htonl ( mac->gid.u.dwords[1] ),
319
 		   htonl ( mac->gid.u.dwords[2] ),
319
 		   htonl ( mac->gid.u.dwords[2] ),

+ 14
- 14
src/drivers/net/mtnic.c View File

87
 * and it's physical aligned address in 'pa'
87
 * and it's physical aligned address in 'pa'
88
 */
88
 */
89
 static int
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
 	*va = alloc_memblock(size, alignment);
92
 	*va = alloc_memblock(size, alignment);
93
 	if (!*va) {
93
 	if (!*va) {
157
 		if (!&ring->iobuf[index]) {
157
 		if (!&ring->iobuf[index]) {
158
 			if (ring->prod <= (ring->cons + 1)) {
158
 			if (ring->prod <= (ring->cons + 1)) {
159
 				DBG("Error allocating Rx io "
159
 				DBG("Error allocating Rx io "
160
-				    "buffer number %lx", index);
160
+				    "buffer number %x", index);
161
 				/* In case of error freeing io buffer */
161
 				/* In case of error freeing io buffer */
162
 				mtnic_free_io_buffers(ring);
162
 				mtnic_free_io_buffers(ring);
163
 				return MTNIC_ERROR;
163
 				return MTNIC_ERROR;
211
 	err = mtnic_alloc_aligned(ring->buf_size, (void *)&ring->buf,
211
 	err = mtnic_alloc_aligned(ring->buf_size, (void *)&ring->buf,
212
 			    &ring->dma, PAGE_SIZE);
212
 			    &ring->dma, PAGE_SIZE);
213
         if (err) {
213
         if (err) {
214
-		DBG("Failed allocating descriptor ring sizeof %lx\n",
214
+		DBG("Failed allocating descriptor ring sizeof %x\n",
215
 		    ring->buf_size);
215
 		    ring->buf_size);
216
 		return MTNIC_ERROR;
216
 		return MTNIC_ERROR;
217
 	}
217
 	}
218
         memset(ring->buf, 0, ring->buf_size);
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
 	    is_rx ? "Rx" : "Tx", ring, ring->buf, ring->size,
222
 	    is_rx ? "Rx" : "Tx", ring, ring->buf, ring->size,
223
 	    ring->buf_size, ring->dma);
223
 	    ring->buf_size, ring->dma);
224
 
224
 
262
 			((u32) priv->fw.tx_offset[priv->port]) << 8);
262
 			((u32) priv->fw.tx_offset[priv->port]) << 8);
263
 
263
 
264
 		/* Map Tx+CQ doorbells */
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
 		    priv->fw.txcq_db_offset);
266
 		    priv->fw.txcq_db_offset);
267
 		ring->txcq_db = ioremap(mtnic_pci_dev.dev.bar[2] +
267
 		ring->txcq_db = ioremap(mtnic_pci_dev.dev.bar[2] +
268
 				priv->fw.txcq_db_offset, PAGE_SIZE);
268
 				priv->fw.txcq_db_offset, PAGE_SIZE);
317
 		return MTNIC_ERROR;
317
 		return MTNIC_ERROR;
318
 	}
318
 	}
319
         memset(cq->buf, 0, cq->buf_size);
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
 	    "dma:%lx db:%p db_dma:%lx\n"
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
 	    cq->buf_size, cq->dma, cq->db,
323
 	    cq->buf_size, cq->dma, cq->db,
324
 	    cq->db_dma, offset_ind);
324
 	    cq->db_dma, offset_ind);
325
 
325
 
570
 	len = PAGE_SIZE * pages.num;
570
 	len = PAGE_SIZE * pages.num;
571
 	pages.buf = (u32 *)umalloc(PAGE_SIZE * (pages.num + 1));
571
 	pages.buf = (u32 *)umalloc(PAGE_SIZE * (pages.num + 1));
572
 	addr = PAGE_SIZE + ((virt_to_bus(pages.buf) & 0xfffff000) + PAGE_SIZE);
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
 	if (addr & (PAGE_MASK)) {
575
 	if (addr & (PAGE_MASK)) {
576
 		DBG("Got FW area not aligned to %d (%llx/%x)\n",
576
 		DBG("Got FW area not aligned to %d (%llx/%x)\n",
657
 
657
 
658
 	err = mtnic_cmd(priv, NULL, extra_pages, 0, MTNIC_IF_CMD_OPEN_NIC);
658
 	err = mtnic_cmd(priv, NULL, extra_pages, 0, MTNIC_IF_CMD_OPEN_NIC);
659
 	priv->fw.extra_pages.num = be32_to_cpu(*(extra_pages+1));
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
 	return err;
661
 	return err;
662
 }
662
 }
663
 
663
 
748
 	config_cq->offset = ((cq->dma) & (PAGE_MASK)) >> 6;
748
 	config_cq->offset = ((cq->dma) & (PAGE_MASK)) >> 6;
749
 	config_cq->db_record_addr_l = cpu_to_be32(cq->db_dma);
749
 	config_cq->db_record_addr_l = cpu_to_be32(cq->db_dma);
750
         config_cq->page_address[1] = cpu_to_be32(cq->dma);
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
 	    "offset: %d size %d index: %d "
752
 	    "offset: %d size %d index: %d "
753
 	    , config_cq->page_address[1],cq->dma,
753
 	    , config_cq->page_address[1],cq->dma,
754
 	    config_cq->offset, config_cq->size, config_cq->cq );
754
 	    config_cq->offset, config_cq->size, config_cq->cq );
1115
 	/* Allocate and map pages worksace */
1115
 	/* Allocate and map pages worksace */
1116
 	err = mtnic_map_cmd(priv, MTNIC_IF_CMD_MAP_PAGES, priv->fw.extra_pages);
1116
 	err = mtnic_map_cmd(priv, MTNIC_IF_CMD_MAP_PAGES, priv->fw.extra_pages);
1117
 	if (err) {
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
 		    priv->fw.extra_pages.num);
1119
 		    priv->fw.extra_pages.num);
1120
 		if (priv->fw.extra_pages.buf)
1120
 		if (priv->fw.extra_pages.buf)
1121
 			free(priv->fw.extra_pages.buf);
1121
 			free(priv->fw.extra_pages.buf);
1503
 
1503
 
1504
         index = ring->prod & ring->size_mask;
1504
         index = ring->prod & ring->size_mask;
1505
 	if ((ring->prod - ring->cons) >= ring->size) {
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
 		    ring->cons, ring->prod);
1507
 		    ring->cons, ring->prod);
1508
 		mdelay(5);
1508
 		mdelay(5);
1509
 		return MTNIC_ERROR;/* no space left */
1509
 		return MTNIC_ERROR;/* no space left */
1690
 	result = ntohl(readl(dev_id));
1690
 	result = ntohl(readl(dev_id));
1691
 	iounmap(dev_id);
1691
 	iounmap(dev_id);
1692
         if (result != MTNIC_DEVICE_ID) {
1692
         if (result != MTNIC_DEVICE_ID) {
1693
-		DBG("Wrong Devie ID (0x%lx) !!!", result);
1693
+		DBG("Wrong Devie ID (0x%x) !!!", result);
1694
 		return MTNIC_ERROR;
1694
 		return MTNIC_ERROR;
1695
 	}
1695
 	}
1696
 
1696
 

+ 1
- 1
src/drivers/net/mtnic.h View File

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

+ 4
- 4
src/drivers/net/natsemi.c View File

358
 	}
358
 	}
359
 	outl (virt_to_bus (&np->tx[0]),np->ioaddr + TxRingPtr);
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
 	     inl (np->ioaddr + TxRingPtr));
362
 	     inl (np->ioaddr + TxRingPtr));
363
 
363
 
364
 	/* Setup RX ring
364
 	/* Setup RX ring
377
 	}
377
 	}
378
 	outl (virt_to_bus (&np->rx[0]), np->ioaddr + RxRingPtr);
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
 	      inl (np->ioaddr + RxRingPtr));		
381
 	      inl (np->ioaddr + RxRingPtr));		
382
 
382
 
383
 	/* Setup RX Filter 
383
 	/* Setup RX Filter 
401
 	outl (tx_config, np->ioaddr + TxConfig);
401
 	outl (tx_config, np->ioaddr + TxConfig);
402
 	outl (rx_config, np->ioaddr + RxConfig);
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
                inl (np->ioaddr + TxConfig),
405
                inl (np->ioaddr + TxConfig),
406
 	       inl (np->ioaddr + RxConfig));
406
 	       inl (np->ioaddr + RxConfig));
407
 
407
 
552
 			netdev_rx_err (netdev, NULL, -EINVAL);
552
 			netdev_rx_err (netdev, NULL, -EINVAL);
553
 
553
 
554
 			DBG ("natsemi_poll: Corrupted packet received!"
554
 			DBG ("natsemi_poll: Corrupted packet received!"
555
-			     " Status = %#08lx\n",
555
+			     " Status = %#08x\n",
556
 			      np->rx[np->rx_cur].cmdsts);
556
 			      np->rx[np->rx_cur].cmdsts);
557
 
557
 
558
 		} else 	{
558
 		} else 	{

+ 11
- 11
src/drivers/net/phantom/phantom.c View File

460
 	len = phantom_readl ( phantom, UNM_CAM_RAM_DMESG_LEN ( log ) );
460
 	len = phantom_readl ( phantom, UNM_CAM_RAM_DMESG_LEN ( log ) );
461
 	tail = phantom_readl ( phantom, UNM_CAM_RAM_DMESG_TAIL ( log ) );
461
 	tail = phantom_readl ( phantom, UNM_CAM_RAM_DMESG_TAIL ( log ) );
462
 	sig = phantom_readl ( phantom, UNM_CAM_RAM_DMESG_SIG ( log ) );
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
 	       phantom, log, head, tail );
464
 	       phantom, log, head, tail );
465
 	assert ( ( head & 0x07 ) == 0 );
465
 	assert ( ( head & 0x07 ) == 0 );
466
 	if ( sig != UNM_CAM_RAM_DMESG_SIG_MAGIC ) {
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
 		       sig, UNM_CAM_RAM_DMESG_SIG_MAGIC );
468
 		       sig, UNM_CAM_RAM_DMESG_SIG_MAGIC );
469
 	}
469
 	}
470
 
470
 
558
 	/* Issue command */
558
 	/* Issue command */
559
 	signature = NX_CDRP_SIGNATURE_MAKE ( phantom->port,
559
 	signature = NX_CDRP_SIGNATURE_MAKE ( phantom->port,
560
 					     NXHAL_VERSION );
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
 	phantom_writel ( phantom, signature, UNM_NIC_REG_NX_SIGN );
563
 	phantom_writel ( phantom, signature, UNM_NIC_REG_NX_SIGN );
564
 	phantom_writel ( phantom, arg1, UNM_NIC_REG_NX_ARG1 );
564
 	phantom_writel ( phantom, arg1, UNM_NIC_REG_NX_ARG1 );
565
 	phantom_writel ( phantom, arg2, UNM_NIC_REG_NX_ARG2 );
565
 	phantom_writel ( phantom, arg2, UNM_NIC_REG_NX_ARG2 );
1036
 		return;
1036
 		return;
1037
 
1037
 
1038
 	/* Record new link state */
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
 	       phantom, xg_state_p3, phantom->link_state );
1040
 	       phantom, xg_state_p3, phantom->link_state );
1041
 	phantom->link_state = xg_state_p3;
1041
 	phantom->link_state = xg_state_p3;
1042
 
1042
 
1840
 		       phantom );
1840
 		       phantom );
1841
 		sw_reset = phantom_readl ( phantom, UNM_ROMUSB_GLB_SW_RESET );
1841
 		sw_reset = phantom_readl ( phantom, UNM_ROMUSB_GLB_SW_RESET );
1842
 		if ( sw_reset != UNM_ROMUSB_GLB_SW_RESET_MAGIC ) {
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
 			       phantom, sw_reset );
1844
 			       phantom, sw_reset );
1845
 			return -EIO;
1845
 			return -EIO;
1846
 		}
1846
 		}
1847
 	} else {
1847
 	} else {
1848
 		DBGC ( phantom, "Phantom %p coming up from warm boot "
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
 	/* Clear cold-boot flag */
1851
 	/* Clear cold-boot flag */
1852
 	phantom_writel ( phantom, 0, UNM_CAM_RAM_COLD_BOOT );
1852
 	phantom_writel ( phantom, 0, UNM_CAM_RAM_COLD_BOOT );
1874
 					       UNM_NIC_REG_CMDPEG_STATE );
1874
 					       UNM_NIC_REG_CMDPEG_STATE );
1875
 		if ( cmdpeg_state != last_cmdpeg_state ) {
1875
 		if ( cmdpeg_state != last_cmdpeg_state ) {
1876
 			DBGC ( phantom, "Phantom %p command PEG state is "
1876
 			DBGC ( phantom, "Phantom %p command PEG state is "
1877
-			       "%08lx after %d seconds...\n",
1877
+			       "%08x after %d seconds...\n",
1878
 			       phantom, cmdpeg_state, retries );
1878
 			       phantom, cmdpeg_state, retries );
1879
 			last_cmdpeg_state = cmdpeg_state;
1879
 			last_cmdpeg_state = cmdpeg_state;
1880
 		}
1880
 		}
1889
 	}
1889
 	}
1890
 
1890
 
1891
 	DBGC ( phantom, "Phantom %p timed out waiting for command PEG to "
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
 	return -ETIMEDOUT;
1893
 	return -ETIMEDOUT;
1894
 }
1894
 }
1895
 
1895
 
1968
 					       UNM_NIC_REG_RCVPEG_STATE );
1968
 					       UNM_NIC_REG_RCVPEG_STATE );
1969
 		if ( rcvpeg_state != last_rcvpeg_state ) {
1969
 		if ( rcvpeg_state != last_rcvpeg_state ) {
1970
 			DBGC ( phantom, "Phantom %p receive PEG state is "
1970
 			DBGC ( phantom, "Phantom %p receive PEG state is "
1971
-			       "%08lx after %d seconds...\n",
1971
+			       "%08x after %d seconds...\n",
1972
 			       phantom, rcvpeg_state, retries );
1972
 			       phantom, rcvpeg_state, retries );
1973
 			last_rcvpeg_state = rcvpeg_state;
1973
 			last_rcvpeg_state = rcvpeg_state;
1974
 		}
1974
 		}
1978
 	}
1978
 	}
1979
 
1979
 
1980
 	DBGC ( phantom, "Phantom %p timed out waiting for receive PEG to "
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
 	return -ETIMEDOUT;
1982
 	return -ETIMEDOUT;
1983
 }
1983
 }
1984
 
1984
 

+ 2
- 2
src/drivers/net/prism2_plx.c View File

50
   /* Fill out hw structure */
50
   /* Fill out hw structure */
51
   hw->membase = attr_mem;
51
   hw->membase = attr_mem;
52
   hw->iobase = iobase;
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
   /* Search for CIS strings */
56
   /* Search for CIS strings */
57
   printf ( "Searching for PCMCIA card...\n" );
57
   printf ( "Searching for PCMCIA card...\n" );

+ 18
- 18
src/drivers/net/r8169.c View File

425
 	DBG ( "tp->mac_version = %d\n", tp->mac_version );
425
 	DBG ( "tp->mac_version = %d\n", tp->mac_version );
426
 
426
 
427
 	if (p->mask == 0x00000000) {
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
 
1621
 
1622
 		tx_status = tx_curr_desc->opts1;
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
 		/* if the packet at tx_tail is not owned by hardware it is for us */
1626
 		/* if the packet at tx_tail is not owned by hardware it is for us */
1627
 		if ( tx_status & DescOwn )
1627
 		if ( tx_status & DescOwn )
1628
 			break;
1628
 			break;
1629
 
1629
 
1630
 		DBG ( "Transmitted packet.\n" );
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
 		DBG ( "tx_curr_desc        = %#08lx\n", virt_to_bus ( tx_curr_desc ) );
1635
 		DBG ( "tx_curr_desc        = %#08lx\n", virt_to_bus ( tx_curr_desc ) );
1636
 
1636
 
1637
 		/* Pass packet to core for processing */
1637
 		/* Pass packet to core for processing */
1660
 {
1660
 {
1661
 	DBGP ( "rtl8169_populate_rx_descriptor\n" );
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
 	memset ( rx_desc, 0, sizeof ( *rx_desc ) );
1665
 	memset ( rx_desc, 0, sizeof ( *rx_desc ) );
1666
 
1666
 
1755
 
1755
 
1756
 		rx_status = rx_curr_desc->opts1;
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
 		/* Hardware still owns the descriptor */
1760
 		/* Hardware still owns the descriptor */
1761
 		if ( rx_status & DescOwn )
1761
 		if ( rx_status & DescOwn )
1768
 		rx_len = rx_status & 0x3fff;
1768
 		rx_len = rx_status & 0x3fff;
1769
 
1769
 
1770
 		DBG ( "Received packet.\n" );
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
 		DBG ( "rx_len              = %d\n", rx_len );
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
 		DBG ( "rx_curr_desc        = %#08lx\n", virt_to_bus ( rx_curr_desc ) );
1774
 		DBG ( "rx_curr_desc        = %#08lx\n", virt_to_bus ( rx_curr_desc ) );
1775
 
1775
 
1776
 		if ( rx_status & RxRES ) {
1776
 		if ( rx_status & RxRES ) {
1778
 			netdev_rx_err ( netdev, tp->rx_iobuf[tp->rx_curr], -EINVAL );
1778
 			netdev_rx_err ( netdev, tp->rx_iobuf[tp->rx_curr], -EINVAL );
1779
 
1779
 
1780
 			DBG ( "rtl8169_poll: Corrupted packet received!\n"
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
 		} else 	{
1783
 		} else 	{
1784
 
1784
 
1964
 
1964
 
1965
 	tx_curr_desc = tp->tx_base + tp->tx_curr;
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
 	DBG ( "tx_curr_desc    = %#08lx\n", virt_to_bus ( tx_curr_desc ) );
1969
 	DBG ( "tx_curr_desc    = %#08lx\n", virt_to_bus ( tx_curr_desc ) );
1970
 	DBG ( "iobuf->data     = %#08lx\n", virt_to_bus ( iobuf->data ) );
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
 	/* Configure current descriptor to transmit supplied packet */
1973
 	/* Configure current descriptor to transmit supplied packet */
1974
 	tx_curr_desc->addr_hi = 0;
1974
 	tx_curr_desc->addr_hi = 0;
1981
 	/* Mark descriptor as owned by NIC */
1981
 	/* Mark descriptor as owned by NIC */
1982
 	tx_curr_desc->opts1 |= DescOwn;
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
 	RTL_W8 ( TxPoll, NPQ );	/* set polling bit */
1989
 	RTL_W8 ( TxPoll, NPQ );	/* set polling bit */
1990
 
1990
 

+ 4
- 4
src/drivers/net/sis900.c View File

695
         outl(w, ioaddr + rfdr);
695
         outl(w, ioaddr + rfdr);
696
 
696
 
697
         if (sis900_debug > 0)
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
                    i, inl(ioaddr + rfdr));
699
                    i, inl(ioaddr + rfdr));
700
     }
700
     }
701
 
701
 
724
     /* load Transmit Descriptor Register */
724
     /* load Transmit Descriptor Register */
725
     outl(virt_to_bus(&txd), ioaddr + txdp); 
725
     outl(virt_to_bus(&txd), ioaddr + txdp); 
726
     if (sis900_debug > 0)
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
                inl(ioaddr + txdp));
728
                inl(ioaddr + txdp));
729
 }
729
 }
730
 
730
 
760
     outl(virt_to_bus(&rxd[0]), ioaddr + rxdp);
760
     outl(virt_to_bus(&rxd[0]), ioaddr + rxdp);
761
 
761
 
762
     if (sis900_debug > 0)
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
                inl(ioaddr + rxdp));
764
                inl(ioaddr + rxdp));
765
 
765
 
766
 }
766
 }
1114
     /* load Transmit Descriptor Register */
1114
     /* load Transmit Descriptor Register */
1115
     outl(virt_to_bus(&txd), ioaddr + txdp); 
1115
     outl(virt_to_bus(&txd), ioaddr + txdp); 
1116
     if (sis900_debug > 1)
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
                inl(ioaddr + txdp));
1118
                inl(ioaddr + txdp));
1119
 
1119
 
1120
     memcpy(txb, d, ETH_ALEN);
1120
     memcpy(txb, d, ETH_ALEN);

+ 2
- 2
src/drivers/net/sundance.c View File

689
 	}
689
 	}
690
 
690
 
691
 	/* Reset the chip to erase previous misconfiguration */
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
 	outw(0x007f, BASE + ASICCtrl + 2);
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
 	sundance_reset(nic);
696
 	sundance_reset(nic);
697
 	if (sdc->an_enable) {
697
 	if (sdc->an_enable) {

+ 2
- 2
src/drivers/net/tg3.c View File

1460
 	}
1460
 	}
1461
 
1461
 
1462
 	if (i == MAX_WAIT_CNT) {
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
 		       ofs, enable_bit );
1464
 		       ofs, enable_bit );
1465
 		return -ENODEV;
1465
 		return -ENODEV;
1466
 	}
1466
 	}
1665
 	if (i >= 100000 &&
1665
 	if (i >= 100000 &&
1666
 		    !(tp->tg3_flags2 & TG3_FLG2_SUN_5704) &&
1666
 		    !(tp->tg3_flags2 & TG3_FLG2_SUN_5704) &&
1667
 		    !(GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5787)) {
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
 			val );
1669
 			val );
1670
 		return -ENODEV;
1670
 		return -ENODEV;
1671
 	}
1671
 	}

+ 2
- 2
src/drivers/net/tulip.c View File

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

+ 1
- 1
src/drivers/net/via-velocity.c View File

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

+ 3
- 3
src/image/efi_image.c View File

43
 				       user_to_virt ( image->data, 0 ),
43
 				       user_to_virt ( image->data, 0 ),
44
 				       image->len, &handle ) ) != 0 ) {
44
 				       image->len, &handle ) ) != 0 ) {
45
 		/* Not an EFI image */
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
 		       image, efirc );
47
 		       image, efirc );
48
 		return -ENOEXEC;
48
 		return -ENOEXEC;
49
 	}
49
 	}
51
 	/* Start the image */
51
 	/* Start the image */
52
 	if ( ( efirc = bs->StartImage ( handle, &exit_data_size,
52
 	if ( ( efirc = bs->StartImage ( handle, &exit_data_size,
53
 					&exit_data ) ) != 0 ) {
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
 		       image, efirc );
55
 		       image, efirc );
56
 		goto done;
56
 		goto done;
57
 	}
57
 	}
81
 				       user_to_virt ( image->data, 0 ),
81
 				       user_to_virt ( image->data, 0 ),
82
 				       image->len, &handle ) ) != 0 ) {
82
 				       image->len, &handle ) ) != 0 ) {
83
 		/* Not an EFI image */
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
 		       image, efirc );
85
 		       image, efirc );
86
 		return -ENOEXEC;
86
 		return -ENOEXEC;
87
 	}
87
 	}

+ 1
- 1
src/image/elf.c View File

72
 	}
72
 	}
73
 	buffer = phys_to_user ( dest );
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
 	      phdr->p_offset, ( phdr->p_offset + phdr->p_filesz ),
76
 	      phdr->p_offset, ( phdr->p_offset + phdr->p_filesz ),
77
 	      phdr->p_paddr, ( phdr->p_paddr + phdr->p_filesz ),
77
 	      phdr->p_paddr, ( phdr->p_paddr + phdr->p_filesz ),
78
 	      ( phdr->p_paddr + phdr->p_memsz ) );
78
 	      ( phdr->p_paddr + phdr->p_memsz ) );

+ 1
- 1
src/interface/efi/efi_console.c View File

224
 
224
 
225
 	/* Read key from real EFI console */
225
 	/* Read key from real EFI console */
226
 	if ( ( efirc = conin->ReadKeyStroke ( conin, &key ) ) != 0 ) {
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
 		return 0;
228
 		return 0;
229
 	}
229
 	}
230
 	DBG2 ( "EFI read key stroke with unicode %04x scancode %04x\n",
230
 	DBG2 ( "EFI read key stroke with unicode %04x scancode %04x\n",

+ 4
- 4
src/interface/efi/efi_io.c View File

86
 	if ( ( efirc = read ( cpu_io, efi_width ( size ),
86
 	if ( ( efirc = read ( cpu_io, efi_width ( size ),
87
 			      ( intptr_t ) io_addr, 1,
87
 			      ( intptr_t ) io_addr, 1,
88
 			      ( void * ) &data ) ) != 0 ) {
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
 		return -1ULL;
90
 		return -1ULL;
91
 	}
91
 	}
92
 
92
 
111
 	if ( ( efirc = write ( cpu_io, efi_width ( size ),
111
 	if ( ( efirc = write ( cpu_io, efi_width ( size ),
112
 			       ( intptr_t ) io_addr, 1,
112
 			       ( intptr_t ) io_addr, 1,
113
 			       ( void * ) &data ) ) != 0 ) {
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
 	if ( ( efirc = read ( cpu_io, efi_width ( size ),
134
 	if ( ( efirc = read ( cpu_io, efi_width ( size ),
135
 			      ( intptr_t ) io_addr, count,
135
 			      ( intptr_t ) io_addr, count,
136
 			      ( void * ) data ) ) != 0 ) {
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
 		      io_addr, efirc );
138
 		      io_addr, efirc );
139
 	}
139
 	}
140
 }
140
 }
158
 	if ( ( efirc = write ( cpu_io, efi_width ( size ),
158
 	if ( ( efirc = write ( cpu_io, efi_width ( size ),
159
 			       ( intptr_t ) io_addr, count,
159
 			       ( intptr_t ) io_addr, count,
160
 			       ( void * ) data ) ) != 0 ) {
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
 		      io_addr, efirc );
162
 		      io_addr, efirc );
163
 	}
163
 	}
164
 }
164
 }

+ 2
- 2
src/interface/efi/efi_pci.c View File

46
 					  efipci_address ( pci, location ), 1,
46
 					  efipci_address ( pci, location ), 1,
47
 					  value ) ) != 0 ) {
47
 					  value ) ) != 0 ) {
48
 		DBG ( "EFIPCI config read from %02x:%02x.%x offset %02lx "
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
 		      PCI_FUNC ( pci->devfn ), EFIPCI_OFFSET ( location ),
50
 		      PCI_FUNC ( pci->devfn ), EFIPCI_OFFSET ( location ),
51
 		      efirc );
51
 		      efirc );
52
 		return -EIO;
52
 		return -EIO;
63
 					   efipci_address ( pci, location ), 1,
63
 					   efipci_address ( pci, location ), 1,
64
 					   &value ) ) != 0 ) {
64
 					   &value ) ) != 0 ) {
65
 		DBG ( "EFIPCI config write to %02x:%02x.%x offset %02lx "
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
 		      PCI_FUNC ( pci->devfn ), EFIPCI_OFFSET ( location ),
67
 		      PCI_FUNC ( pci->devfn ), EFIPCI_OFFSET ( location ),
68
 		      efirc );
68
 		      efirc );
69
 		return -EIO;
69
 		return -EIO;

+ 16
- 16
src/interface/efi/efi_snp.c View File

173
 		container_of ( snp, struct efi_snp_device, snp );
173
 		container_of ( snp, struct efi_snp_device, snp );
174
 	int rc;
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
 		snpdev, extra_rx_bufsize, extra_tx_bufsize );
177
 		snpdev, extra_rx_bufsize, extra_tx_bufsize );
178
 
178
 
179
 	if ( ( rc = netdev_open ( snpdev->netdev ) ) != 0 ) {
179
 	if ( ( rc = netdev_open ( snpdev->netdev ) ) != 0 ) {
252
 		container_of ( snp, struct efi_snp_device, snp );
252
 		container_of ( snp, struct efi_snp_device, snp );
253
 	unsigned int i;
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
 		snpdev, enable, disable, ( mcast_reset ? " reset" : "" ),
256
 		snpdev, enable, disable, ( mcast_reset ? " reset" : "" ),
257
 		mcast_count );
257
 		mcast_count );
258
 	for ( i = 0 ; i < mcast_count ; i++ ) {
258
 	for ( i = 0 ; i < mcast_count ; i++ ) {
390
 	struct efi_snp_device *snpdev =
390
 	struct efi_snp_device *snpdev =
391
 		container_of ( snp, struct efi_snp_device, snp );
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
 		( read ? "read" : "write" ), offset, len );
394
 		( read ? "read" : "write" ), offset, len );
395
 	if ( ! read )
395
 	if ( ! read )
396
 		DBGC2_HDA ( snpdev, offset, data, len );
396
 		DBGC2_HDA ( snpdev, offset, data, len );
435
 			*interrupts |= EFI_SIMPLE_NETWORK_RECEIVE_INTERRUPT;
435
 			*interrupts |= EFI_SIMPLE_NETWORK_RECEIVE_INTERRUPT;
436
 			snpdev->rx_count_interrupts--;
436
 			snpdev->rx_count_interrupts--;
437
 		}
437
 		}
438
-		DBGC2 ( snpdev, " INTS:%02lx", *interrupts );
438
+		DBGC2 ( snpdev, " INTS:%02x", *interrupts );
439
 	}
439
 	}
440
 
440
 
441
 	/* TX completions.  It would be possible to design a more
441
 	/* TX completions.  It would be possible to design a more
492
 	int rc;
492
 	int rc;
493
 	EFI_STATUS efirc;
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
 	if ( ll_header_len ) {
496
 	if ( ll_header_len ) {
497
 		if ( ll_src ) {
497
 		if ( ll_src ) {
498
 			DBGC2 ( snpdev, " src %s",
498
 			DBGC2 ( snpdev, " src %s",
512
 	if ( ll_header_len ) {
512
 	if ( ll_header_len ) {
513
 		if ( ll_header_len != ll_protocol->ll_header_len ) {
513
 		if ( ll_header_len != ll_protocol->ll_header_len ) {
514
 			DBGC ( snpdev, "SNPDEV %p TX invalid header length "
514
 			DBGC ( snpdev, "SNPDEV %p TX invalid header length "
515
-			       "%ld\n", snpdev, ll_header_len );
515
+			       "%d\n", snpdev, ll_header_len );
516
 			efirc = EFI_INVALID_PARAMETER;
516
 			efirc = EFI_INVALID_PARAMETER;
517
 			goto err_sanity;
517
 			goto err_sanity;
518
 		}
518
 		}
519
 		if ( len < ll_header_len ) {
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
 			       snpdev, len );
521
 			       snpdev, len );
522
 			efirc = EFI_BUFFER_TOO_SMALL;
522
 			efirc = EFI_BUFFER_TOO_SMALL;
523
 			goto err_sanity;
523
 			goto err_sanity;
541
 	/* Allocate buffer */
541
 	/* Allocate buffer */
542
 	iobuf = alloc_iob ( len );
542
 	iobuf = alloc_iob ( len );
543
 	if ( ! iobuf ) {
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
 		       "buffer\n", snpdev, len );
545
 		       "buffer\n", snpdev, len );
546
 		efirc = EFI_DEVICE_ERROR;
546
 		efirc = EFI_DEVICE_ERROR;
547
 		goto err_alloc_iob;
547
 		goto err_alloc_iob;
610
 	int rc;
610
 	int rc;
611
 	EFI_STATUS efirc;
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
 	/* Poll the network device */
615
 	/* Poll the network device */
616
 	efi_snp_poll ( snpdev );
616
 	efi_snp_poll ( snpdev );
737
 	if ( ( efirc = u.pci->GetLocation ( u.pci, &pci_segment, &pci_bus,
737
 	if ( ( efirc = u.pci->GetLocation ( u.pci, &pci_segment, &pci_bus,
738
 					    &pci_dev, &pci_fn ) ) != 0 ) {
738
 					    &pci_dev, &pci_fn ) ) != 0 ) {
739
 		DBGC ( driver, "SNPDRV %p device %p could not get PCI "
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
 		goto out_no_pci_location;
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
 		driver, device, pci_segment, pci_bus, pci_dev, pci_fn );
744
 		driver, device, pci_segment, pci_bus, pci_dev, pci_fn );
745
 
745
 
746
 	/* Look up corresponding network device */
746
 	/* Look up corresponding network device */
786
 					  device,
786
 					  device,
787
 					  EFI_OPEN_PROTOCOL_GET_PROTOCOL))!=0){
787
 					  EFI_OPEN_PROTOCOL_GET_PROTOCOL))!=0){
788
 		DBGC ( driver, "SNPDRV %p device %p could not locate SNP: "
788
 		DBGC ( driver, "SNPDRV %p device %p could not locate SNP: "
789
-		       "%lx\n", driver, device, efirc );
789
+		       "%x\n", driver, device, efirc );
790
 		return NULL;
790
 		return NULL;
791
 	}
791
 	}
792
 
792
 
869
 	if ( ( efirc = bs->CreateEvent ( EVT_NOTIFY_WAIT, TPL_NOTIFY,
869
 	if ( ( efirc = bs->CreateEvent ( EVT_NOTIFY_WAIT, TPL_NOTIFY,
870
 					 efi_snp_wait_for_packet, snpdev,
870
 					 efi_snp_wait_for_packet, snpdev,
871
 					 &snpdev->snp.WaitForPacket ) ) != 0 ){
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
 		       snpdev, efirc );
873
 		       snpdev, efirc );
874
 		goto err_create_event;
874
 		goto err_create_event;
875
 	}
875
 	}
882
 	if ( ( efirc = bs->InstallProtocolInterface ( &device,
882
 	if ( ( efirc = bs->InstallProtocolInterface ( &device,
883
 				&efi_simple_network_protocol_guid,
883
 				&efi_simple_network_protocol_guid,
884
 				EFI_NATIVE_INTERFACE, &snpdev->snp ) ) != 0 ) {
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
 		       snpdev, efirc );
886
 		       snpdev, efirc );
887
 		goto err_install_protocol_interface;
887
 		goto err_install_protocol_interface;
888
 	}
888
 	}
922
 	EFI_BOOT_SERVICES *bs = efi_systab->BootServices;
922
 	EFI_BOOT_SERVICES *bs = efi_systab->BootServices;
923
 	struct efi_snp_device *snpdev;
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
 		driver, device, num_children, children );
926
 		driver, device, num_children, children );
927
 
927
 
928
 	/* Locate SNP device */
928
 	/* Locate SNP device */
970
 					EFI_NATIVE_INTERFACE,
970
 					EFI_NATIVE_INTERFACE,
971
 					driver ) ) != 0 ) {
971
 					driver ) ) != 0 ) {
972
 		DBGC ( driver, "SNPDRV %p could not install driver binding: "
972
 		DBGC ( driver, "SNPDRV %p could not install driver binding: "
973
-		       "%lx\n", driver, efirc );
973
+		       "%x\n", driver, efirc );
974
 		return EFIRC_TO_RC ( efirc );
974
 		return EFIRC_TO_RC ( efirc );
975
 	}
975
 	}
976
 
976
 

+ 2
- 2
src/interface/efi/efi_timer.c View File

53
 	EFI_STATUS efirc;
53
 	EFI_STATUS efirc;
54
 
54
 
55
 	if ( ( efirc = bs->Stall ( usecs ) ) != 0 ) {
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
 		      usecs, efirc );
57
 		      usecs, efirc );
58
 		/* Probably screwed */
58
 		/* Probably screwed */
59
 	}
59
 	}
71
 	/* Read CPU timer 0 (TSC) */
71
 	/* Read CPU timer 0 (TSC) */
72
 	if ( ( efirc = cpu_arch->GetTimerValue ( cpu_arch, 0, &time,
72
 	if ( ( efirc = cpu_arch->GetTimerValue ( cpu_arch, 0, &time,
73
 						 NULL ) ) != 0 ) {
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
 		/* Probably screwed */
75
 		/* Probably screwed */
76
 		return -1UL;
76
 		return -1UL;
77
 	}
77
 	}

+ 2
- 2
src/interface/efi/efi_umalloc.c View File

56
 						   EfiBootServicesData,
56
 						   EfiBootServicesData,
57
 						   new_pages,
57
 						   new_pages,
58
 						   &phys_addr ) ) != 0 ) {
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
 			      new_pages, efirc );
60
 			      new_pages, efirc );
61
 			return UNULL;
61
 			return UNULL;
62
 		}
62
 		}
81
 		old_pages = ( EFI_SIZE_TO_PAGES ( old_size ) + 1 );
81
 		old_pages = ( EFI_SIZE_TO_PAGES ( old_size ) + 1 );
82
 		phys_addr = user_to_phys ( old_ptr, -EFI_PAGE_SIZE );
82
 		phys_addr = user_to_phys ( old_ptr, -EFI_PAGE_SIZE );
83
 		if ( ( efirc = bs->FreePages ( phys_addr, old_pages ) ) != 0 ){
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
 			      old_pages, phys_addr, efirc );
85
 			      old_pages, phys_addr, efirc );
86
 			/* Not fatal; we have leaked memory but successfully
86
 			/* Not fatal; we have leaked memory but successfully
87
 			 * allocated (if asked to do so).
87
 			 * allocated (if asked to do so).

+ 5
- 5
src/net/tcp.c View File

483
 	tcphdr->csum = tcpip_chksum ( iobuf->data, iob_len ( iobuf ) );
483
 	tcphdr->csum = tcpip_chksum ( iobuf->data, iob_len ( iobuf ) );
484
 
484
 
485
 	/* Dump header */
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
 	       tcp, ntohs ( tcphdr->src ), ntohs ( tcphdr->dest ),
487
 	       tcp, ntohs ( tcphdr->src ), ntohs ( tcphdr->dest ),
488
 	       ntohl ( tcphdr->seq ), ( ntohl ( tcphdr->seq ) + seq_len ),
488
 	       ntohl ( tcphdr->seq ), ( ntohl ( tcphdr->seq ) + seq_len ),
489
 	       ntohl ( tcphdr->ack ), len );
489
 	       ntohl ( tcphdr->ack ), len );
564
 	tcphdr->csum = tcpip_chksum ( iobuf->data, iob_len ( iobuf ) );
564
 	tcphdr->csum = tcpip_chksum ( iobuf->data, iob_len ( iobuf ) );
565
 
565
 
566
 	/* Dump header */
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
 	       tcp, ntohs ( tcphdr->src ), ntohs ( tcphdr->dest ),
568
 	       tcp, ntohs ( tcphdr->src ), ntohs ( tcphdr->dest ),
569
 	       ntohl ( tcphdr->seq ), ( ntohl ( tcphdr->seq ) ),
569
 	       ntohl ( tcphdr->seq ), ( ntohl ( tcphdr->seq ) ),
570
 	       ntohl ( tcphdr->ack ), 0 );
570
 	       ntohl ( tcphdr->ack ), 0 );
702
 
702
 
703
 	/* Ignore duplicate or out-of-range ACK */
703
 	/* Ignore duplicate or out-of-range ACK */
704
 	if ( ack_len > tcp->snd_sent ) {
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
 		       ( tcp->snd_seq + ack_len ), tcp->snd_seq,
707
 		       ( tcp->snd_seq + ack_len ), tcp->snd_seq,
708
 		       ( tcp->snd_seq + tcp->snd_sent ) );
708
 		       ( tcp->snd_seq + tcp->snd_sent ) );
709
 		return -EINVAL;
709
 		return -EINVAL;
894
 	len = iob_len ( iobuf );
894
 	len = iob_len ( iobuf );
895
 
895
 
896
 	/* Dump header */
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
 	       tcp, ntohs ( tcphdr->dest ), ntohs ( tcphdr->src ),
898
 	       tcp, ntohs ( tcphdr->dest ), ntohs ( tcphdr->src ),
899
 	       ntohl ( tcphdr->ack ), ntohl ( tcphdr->seq ),
899
 	       ntohl ( tcphdr->ack ), ntohl ( tcphdr->seq ),
900
 	       ( ntohl ( tcphdr->seq ) + len +
900
 	       ( ntohl ( tcphdr->seq ) + len +

+ 1
- 1
src/net/tcp/iscsi.c View File

1305
 			  size_t len, size_t remaining __unused ) {
1305
 			  size_t len, size_t remaining __unused ) {
1306
 	memcpy ( &iscsi->rx_bhs.bytes[iscsi->rx_offset], data, len );
1306
 	memcpy ( &iscsi->rx_bhs.bytes[iscsi->rx_offset], data, len );
1307
 	if ( ( iscsi->rx_offset + len ) >= sizeof ( iscsi->rx_bhs ) ) {
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
 			iscsi, iscsi->rx_bhs.common.opcode,
1309
 			iscsi, iscsi->rx_bhs.common.opcode,
1310
 			ISCSI_DATA_LEN ( iscsi->rx_bhs.common.lengths ) );
1310
 			ISCSI_DATA_LEN ( iscsi->rx_bhs.common.lengths ) );
1311
 	}
1311
 	}

Loading…
Cancel
Save