From d5af4196fc88e0b33d8851a1c30718ec6983adcc Mon Sep 17 00:00:00 2001 From: Geoff Salmon Date: Mon, 4 Feb 2013 13:05:36 -0500 Subject: [PATCH] fixes typo port_managment_error -> port_management_error Signed-off-by: Geoff Salmon --- clock.c | 2 +- port.c | 8 ++++---- port.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/clock.c b/clock.c index 98e91d3..67271a9 100644 --- a/clock.c +++ b/clock.c @@ -670,7 +670,7 @@ void clock_manage(struct clock *c, struct port *p, struct ptp_message *msg) case TRANSPARENT_CLOCK_DEFAULT_DATA_SET: case PRIMARY_DOMAIN: pid = port_identity(p); - if (port_managment_error(pid, p, msg, NOT_SUPPORTED)) + if (port_management_error(pid, p, msg, NOT_SUPPORTED)) pr_err("failed to send management error status"); break; default: diff --git a/port.c b/port.c index 0112cb3..a1c42ac 100644 --- a/port.c +++ b/port.c @@ -1691,7 +1691,7 @@ int port_manage(struct port *p, struct port *ingress, struct ptp_message *msg) return 0; break; case SET: - if (port_managment_error(p->portIdentity, ingress, msg, + if (port_management_error(p->portIdentity, ingress, msg, NOT_SUPPORTED)) pr_err("port %hu: management error failed", portnum(p)); break; @@ -1717,7 +1717,7 @@ int port_manage(struct port *p, struct port *ingress, struct ptp_message *msg) case TRANSPARENT_CLOCK_PORT_DATA_SET: case DELAY_MECHANISM: case LOG_MIN_PDELAY_REQ_INTERVAL: - if (port_managment_error(p->portIdentity, ingress, msg, + if (port_management_error(p->portIdentity, ingress, msg, NOT_SUPPORTED)) pr_err("port %hu: management error failed", portnum(p)); break; @@ -1727,8 +1727,8 @@ int port_manage(struct port *p, struct port *ingress, struct ptp_message *msg) return 0; } -int port_managment_error(struct PortIdentity pid, struct port *ingress, - struct ptp_message *req, Enumeration16 error_id) +int port_management_error(struct PortIdentity pid, struct port *ingress, + struct ptp_message *req, Enumeration16 error_id) { struct ptp_message *msg; struct management_tlv *mgt; diff --git a/port.h b/port.h index 74a08f7..ba4e612 100644 --- a/port.h +++ b/port.h @@ -116,8 +116,8 @@ int port_manage(struct port *p, struct port *ingress, struct ptp_message *msg); * @param error_id One of the management error ID values. * @return Zero on success, non-zero otherwise. */ -int port_managment_error(struct PortIdentity pid, struct port *ingress, - struct ptp_message *req, Enumeration16 error_id); +int port_management_error(struct PortIdentity pid, struct port *ingress, + struct ptp_message *req, Enumeration16 error_id); /** * Allocate a reply to a management message.