Print this page
OS-1780 ipdadm accidentally a newline

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ipdadm/ipdadm.c
          +++ new/usr/src/cmd/ipdadm/ipdadm.c
↓ open down ↓ 158 lines elided ↑ open up ↑
 159  159          (void) ipd_close(fd);
 160  160          if (rval != 0) {
 161  161                  (void) fprintf(stderr, "%s: failed to get info: %s\n",
 162  162                      g_pname, ipd_errmsg);
 163  163                  return (E_ERROR);
 164  164          }
 165  165  
 166  166          if (ipd_status_get_config(hdl, g_zid, &icp) != 0) {
 167  167                  if (ipd_errno == EIPD_ZC_NOENT) {
 168  168                          (void) printf("zone %s does not exist or has no "
 169      -                            "ipd actions enabled", g_zonename);
      169 +                            "ipd actions enabled\n", g_zonename);
 170  170                          return (E_SUCCESS);
 171  171                  }
 172  172                  (void) fprintf(stderr, "%s: failed to get info: %s\n",
 173  173                      g_pname, ipd_errmsg);
 174  174                  return (E_ERROR);
 175  175          }
 176  176  
 177  177          (void) printf("ipd information for zone %s:\n",
 178  178              g_zonename);
 179  179          (void) printf("\tcorrupt:\t%u%% chance of packet corruption\n",
↓ open down ↓ 265 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX