Browse Source

[bofm] Use "mport" rather than "port" to describe mport value

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
7fc1a0a1c5
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      src/interface/bofm/bofm.c

+ 5
- 5
src/interface/bofm/bofm.c View File

181
 
181
 
182
 	/* Retrieve current MAC address */
182
 	/* Retrieve current MAC address */
183
 	if ( ( rc = bofm->op->harvest ( bofm, en->mport, mac ) ) != 0 ) {
183
 	if ( ( rc = bofm->op->harvest ( bofm, en->mport, mac ) ) != 0 ) {
184
-		DBG ( "BOFM: " PCI_FMT " port %d could not harvest: %s\n",
184
+		DBG ( "BOFM: " PCI_FMT " mport %d could not harvest: %s\n",
185
 		      PCI_ARGS ( bofm->pci ), en->mport, strerror ( rc ) );
185
 		      PCI_ARGS ( bofm->pci ), en->mport, strerror ( rc ) );
186
 		return rc;
186
 		return rc;
187
 	}
187
 	}
188
 
188
 
189
 	/* Harvest MAC address if necessary */
189
 	/* Harvest MAC address if necessary */
190
 	if ( en->options & BOFM_EN_RQ_HVST_MASK ) {
190
 	if ( en->options & BOFM_EN_RQ_HVST_MASK ) {
191
-		DBG ( "BOFM: " PCI_FMT " port %d harvested MAC %s\n",
191
+		DBG ( "BOFM: " PCI_FMT " mport %d harvested MAC %s\n",
192
 		      PCI_ARGS ( bofm->pci ), en->mport, eth_ntoa ( mac ) );
192
 		      PCI_ARGS ( bofm->pci ), en->mport, eth_ntoa ( mac ) );
193
 		memcpy ( en->mac_a, mac, sizeof ( en->mac_a ) );
193
 		memcpy ( en->mac_a, mac, sizeof ( en->mac_a ) );
194
 		en->options |= ( BOFM_EN_EN_A | BOFM_EN_HVST );
194
 		en->options |= ( BOFM_EN_EN_A | BOFM_EN_HVST );
197
 	/* Mark as changed if necessary */
197
 	/* Mark as changed if necessary */
198
 	if ( ( en->options & BOFM_EN_EN_A ) &&
198
 	if ( ( en->options & BOFM_EN_EN_A ) &&
199
 	     ( memcmp ( en->mac_a, mac, sizeof ( en->mac_a ) ) != 0 ) ) {
199
 	     ( memcmp ( en->mac_a, mac, sizeof ( en->mac_a ) ) != 0 ) ) {
200
-		DBG ( "BOFM: " PCI_FMT " port %d MAC %s",
200
+		DBG ( "BOFM: " PCI_FMT " mport %d MAC %s",
201
 		      PCI_ARGS ( bofm->pci ), en->mport, eth_ntoa ( mac ) );
201
 		      PCI_ARGS ( bofm->pci ), en->mport, eth_ntoa ( mac ) );
202
 		DBG ( " changed to %s\n", eth_ntoa ( en->mac_a ) );
202
 		DBG ( " changed to %s\n", eth_ntoa ( en->mac_a ) );
203
 		en->options |= BOFM_EN_CHG_CHANGED;
203
 		en->options |= BOFM_EN_CHG_CHANGED;
207
 	if ( ( en->options & BOFM_EN_EN_A ) &&
207
 	if ( ( en->options & BOFM_EN_EN_A ) &&
208
 	     ( en->options & BOFM_EN_USAGE_ENTRY ) &&
208
 	     ( en->options & BOFM_EN_USAGE_ENTRY ) &&
209
 	     ( ! ( en->options & BOFM_EN_USAGE_HARVEST ) ) ) {
209
 	     ( ! ( en->options & BOFM_EN_USAGE_HARVEST ) ) ) {
210
-		DBG ( "BOFM: " PCI_FMT " port %d applied MAC %s\n",
210
+		DBG ( "BOFM: " PCI_FMT " mport %d applied MAC %s\n",
211
 		      PCI_ARGS ( bofm->pci ), en->mport,
211
 		      PCI_ARGS ( bofm->pci ), en->mport,
212
 		      eth_ntoa ( en->mac_a ) );
212
 		      eth_ntoa ( en->mac_a ) );
213
 		memcpy ( mac, en->mac_a, sizeof ( mac ) );
213
 		memcpy ( mac, en->mac_a, sizeof ( mac ) );
215
 
215
 
216
 	/* Store MAC address */
216
 	/* Store MAC address */
217
 	if ( ( rc = bofm->op->update ( bofm, en->mport, mac ) ) != 0 ) {
217
 	if ( ( rc = bofm->op->update ( bofm, en->mport, mac ) ) != 0 ) {
218
-		DBG ( "BOFM: " PCI_FMT " port %d could not update: %s\n",
218
+		DBG ( "BOFM: " PCI_FMT " mport %d could not update: %s\n",
219
 		      PCI_ARGS ( bofm->pci ), en->mport, strerror ( rc ) );
219
 		      PCI_ARGS ( bofm->pci ), en->mport, strerror ( rc ) );
220
 		return rc;
220
 		return rc;
221
 	}
221
 	}

Loading…
Cancel
Save