lwIP | Add GRETH/GRETH_GBIT driver (!40)
Kinsey Moore (@opticron)
gitlab at rtems.org
Thu Apr 30 16:56:26 UTC 2026
Kinsey Moore started a new discussion on rtemslwip/greth/greth_lwip.c: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_149326
>
> for ( index = 0; index < netif->hwaddr_len; index++ ) {
> if ( index ) {
> - macStr[ outindex++ ] = ':';
> + mac_string[ outindex++ ] = ':';
> }
> ch = ( netif->hwaddr[ index ] >> 4 );
> - macStr[ outindex++ ] = ( ch < 10 ) ? ( ch + '0' ) : ( ch - 10 + 'A' );
> + mac_string[ outindex++ ] = ( ch < 10 ) ? ( ch + '0' ) : ( ch - 10 + 'A' );
> ch = ( netif->hwaddr[ index ] & 0xf );
> - macStr[ outindex++ ] = ( ch < 10 ) ? ( ch + '0' ) : ( ch - 10 + 'A' );
> + mac_string[ outindex++ ] = ( ch < 10 ) ? ( ch + '0' ) : ( ch - 10 + 'A' );
> }
> - macStr[ outindex ] = 0;
> + mac_string[ outindex ] = 0;
> }
This is purely a renaming and formatting change except for the type change. This can go in the formatting commit or a renaming commit except for the type change.
--
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_149326
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260430/2f425f1d/attachment-0001.htm>
More information about the bugs
mailing list